summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/doc
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-01-12 20:09:17 +0000
committerpfg <pfg@FreeBSD.org>2014-01-12 20:09:17 +0000
commitd54137712a89d020593dfb73ef2e0814051f5387 (patch)
tree6dde575a17523490a1eb8a95203dc25539b6bc86 /contrib/gcc/doc
parentefe1ed416377f5fae081eecae69aadc367892ba9 (diff)
downloadFreeBSD-src-d54137712a89d020593dfb73ef2e0814051f5387.zip
FreeBSD-src-d54137712a89d020593dfb73ef2e0814051f5387.tar.gz
MFC r259920:
gcc: Implement -Wmost for compatibility with clang. This is equivalent to -Wall -Wno-parentheses. Obtained from: Apple GCC 4.2 - 5531
Diffstat (limited to 'contrib/gcc/doc')
-rw-r--r--contrib/gcc/doc/invoke.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/gcc/doc/invoke.texi b/contrib/gcc/doc/invoke.texi
index 4549e22..dd9a367 100644
--- a/contrib/gcc/doc/invoke.texi
+++ b/contrib/gcc/doc/invoke.texi
@@ -222,6 +222,8 @@ in the following sections.
-Wmain -Wmissing-braces -Wmissing-field-initializers @gol
-Wmissing-format-attribute -Wmissing-include-dirs @gol
-Wmissing-noreturn @gol
+@c APPLE LOCAL -Wmost
+-Wmost (APPLE ONLY) @gol
-Wno-multichar -Wnonnull -Wno-overflow @gol
-Woverlength-strings -Wpacked -Wpadded @gol
-Wparentheses -Wpointer-arith -Wno-pointer-to-int-cast @gol
@@ -2652,7 +2654,12 @@ warnings about constructions that some users consider questionable, and
that are easy to avoid (or modify to prevent the warning), even in
conjunction with macros. This also enables some language-specific
warnings described in @ref{C++ Dialect Options}.
+@c APPLE LOCAL begin -Wmost
+@item -Wmost
+@opindex Wmost
+This is equivalent to -Wall -Wno-parentheses. (Apple compatible)
@end table
+@c APPLE LOCAL end -Wmost
The following @option{-W@dots{}} options are not implied by @option{-Wall}.
Some of them warn about constructions that users generally do not
OpenPOWER on IntegriCloud