diff options
author | Sylvain Pion <pion@cs.nyu.edu> | 2002-08-28 21:07:09 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2002-08-28 22:07:09 +0100 |
commit | bd8f9aec682d9fa0f17647d980af44b2b3d1b024 (patch) | |
tree | cbd6e7363e1ca11a89843c6a8bb724e36282e4c1 /gcc | |
parent | 97d8f7e7e731a1c6d0b0174e0a47a45ae84f75e8 (diff) | |
download | gcc-bd8f9aec682d9fa0f17647d980af44b2b3d1b024.zip gcc-bd8f9aec682d9fa0f17647d980af44b2b3d1b024.tar.gz gcc-bd8f9aec682d9fa0f17647d980af44b2b3d1b024.tar.bz2 |
invoke.texi (-Wreorder): Remove remaining pieces from the generic section.
2002-08-28 Sylvain Pion <pion@cs.nyu.edu>
* doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
section. Mention that it is enabled by -Wall.
(-Wall): Mention that there can be language-specific warnings as well.
(-Wctor-dtor-privacy): Mention that it is enabled by default.
(-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
From-SVN: r56643
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 16 |
2 files changed, 14 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e77e487..17b0ffe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2002-08-28 Sylvain Pion <pion@cs.nyu.edu> + + * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic + section. Mention that it is enabled by -Wall. + (-Wall): Mention that there can be language-specific warnings as well. + (-Wctor-dtor-privacy): Mention that it is enabled by default. + (-Wnon-virtual-dtor): Mention that it is enabled by -Wall. + Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com> * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e956baa..d4bd453 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1531,12 +1531,13 @@ compilers to layout @code{C} identically. @opindex Wctor-dtor-privacy Warn when a class seems unusable, because all the constructors or destructors in a class are private and the class has no friends or -public static member functions. +public static member functions. This warning is enabled by default. @item -Wnon-virtual-dtor @r{(C++ only)} @opindex Wnon-virtual-dtor Warn when a class declares a non-virtual destructor that should probably be virtual, because it looks like the class will be used polymorphically. +This warning is enabled by @option{-Wall}. @item -Wreorder @r{(C++ only)} @opindex Wreorder @@ -1555,7 +1556,7 @@ struct A @{ Here the compiler will warn that the member initializers for @samp{i} and @samp{j} will be rearranged to match the declaration order of the -members. +members. This warning is enabled by @option{-Wall}. @end table The following @option{-W@dots{}} options are not affected by @option{-Wall}. @@ -2245,13 +2246,6 @@ Some spurious warnings can be avoided if you declare all the functions you use that never return as @code{noreturn}. @xref{Function Attributes}. -@item -Wreorder @r{(C++ only)} -@opindex Wreorder -@cindex reordering, warning -@cindex warning for reordering of member initializers -Warn when the order of member initializers given in the code does not -match the order in which they must be executed. For instance: - @item -Wunknown-pragmas @opindex Wunknown-pragmas @cindex warning for unknown pragmas @@ -2267,7 +2261,9 @@ the warnings were only enabled by the @option{-Wall} command line option. All of the above @samp{-W} options combined. This enables all the 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. +conjunction with macros. This also enables some language-specific +warnings described in @ref{C++ Dialect Options} and +@ref{Objective-C Dialect Options}. @end table The following @option{-W@dots{}} options are not implied by @option{-Wall}. |