aboutsummaryrefslogtreecommitdiff
path: root/gcc/invoke.texi
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1997-09-30 13:49:34 -0400
committerJason Merrill <jason@gcc.gnu.org>1997-09-30 13:49:34 -0400
commitd770d3b33ce4a6d761feccc4bb0b8ad61d26c87c (patch)
tree765df9e1785847571536ddad03cbd0cb649743d1 /gcc/invoke.texi
parent8c81598dbad41becc3e8cd46a3034ecf35b097f0 (diff)
downloadgcc-d770d3b33ce4a6d761feccc4bb0b8ad61d26c87c.zip
gcc-d770d3b33ce4a6d761feccc4bb0b8ad61d26c87c.tar.gz
gcc-d770d3b33ce4a6d761feccc4bb0b8ad61d26c87c.tar.bz2
add -Wold-style-cast
From-SVN: r15807
Diffstat (limited to 'gcc/invoke.texi')
-rw-r--r--gcc/invoke.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index 26e6330..28e347a 100644
--- a/gcc/invoke.texi
+++ b/gcc/invoke.texi
@@ -120,7 +120,7 @@ in the following sections.
-Wid-clash-@var{len} -Wimplicit -Wimport -Winline
-Wlarger-than-@var{len} -Wmain -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs
--Wno-import -Woverloaded-virtual -Wparentheses
+-Wno-import -Wold-style-cast -Woverloaded-virtual -Wparentheses
-Wpointer-arith -Wredundant-decls -Wreorder -Wreturn-type -Wshadow
-Wsign-compare -Wstrict-prototypes -Wswitch -Wsynth
-Wtemplate-debugging -Wtraditional -Wtrigraphs
@@ -1124,7 +1124,8 @@ have meanings only for C++ programs:
Do not assume @samp{inline} for functions defined inside a class scope.
@xref{Optimize Options,,Options That Control Optimization}.
-@item -Woverloaded-virtual
+@item -Wold-style-cast
+@itemx -Woverloaded-virtual
@itemx -Wtemplate-debugging
Warnings that apply only to C++ programs. @xref{Warning
Options,,Options to Request or Suppress Warnings}.
@@ -1541,6 +1542,9 @@ Warn if an @code{extern} declaration is encountered within an function.
Warn if a function can not be inlined, and either it was declared as inline,
or else the @samp{-finline-functions} option was given.
+@item -Wold-style-cast
+Warn if an old-style (C-style) cast is used within a program.
+
@item -Woverloaded-virtual
@cindex overloaded virtual fn, warning
@cindex warning for overloaded virtual fn