Page MenuHomeFreeBSD

D56517.diff
No OneTemporary

D56517.diff

diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9
--- a/share/man/man9/cdefs.9
+++ b/share/man/man9/cdefs.9
@@ -85,7 +85,9 @@
.It Sy __weak_symbol Ta Declare the symbol to be a weak symbol
.It Sy __dead2 Ta Function will not return
.It Sy __pure2 Ta Function has no side effects
-.It Sy __unused Ta To Variable may be unused (usually arguments), so do not
+.It Sy __unused Ta Variable may be unused (usually arguments), so do not
+warn about it
+.It Sy __maybe_unused Ta Variable may be unused (usually arguments), so do not
warn about it
.It Sy __used Ta Function really is used, so emit it even if it appears unused.
.It Sy __deprecated Ta Function interface has been deprecated, and clients
diff --git a/sys/compat/linuxkpi/common/include/linux/compiler_attributes.h b/sys/compat/linuxkpi/common/include/linux/compiler_attributes.h
--- a/sys/compat/linuxkpi/common/include/linux/compiler_attributes.h
+++ b/sys/compat/linuxkpi/common/include/linux/compiler_attributes.h
@@ -39,7 +39,6 @@
#define noinline_for_stack __noinline
-#define __maybe_unused __unused
#define __always_unused __unused
#define __must_check __result_use_check
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -152,6 +152,7 @@
#define __weak_symbol __attribute__((__weak__))
#define __dead2 __attribute__((__noreturn__))
#define __pure2 __attribute__((__const__))
+#define __maybe_unused __attribute__((__unused__))
#define __unused __attribute__((__unused__))
#define __used __attribute__((__used__))
#define __deprecated __attribute__((__deprecated__))

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 25, 8:27 PM (5 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32141201
Default Alt Text
D56517.diff (1 KB)

Event Timeline