Commit d770d3b3 by Jason Merrill

add -Wold-style-cast

From-SVN: r15807
parent 8c81598d
...@@ -120,7 +120,7 @@ in the following sections. ...@@ -120,7 +120,7 @@ in the following sections.
-Wid-clash-@var{len} -Wimplicit -Wimport -Winline -Wid-clash-@var{len} -Wimplicit -Wimport -Winline
-Wlarger-than-@var{len} -Wmain -Wmissing-declarations -Wlarger-than-@var{len} -Wmain -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -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 -Wpointer-arith -Wredundant-decls -Wreorder -Wreturn-type -Wshadow
-Wsign-compare -Wstrict-prototypes -Wswitch -Wsynth -Wsign-compare -Wstrict-prototypes -Wswitch -Wsynth
-Wtemplate-debugging -Wtraditional -Wtrigraphs -Wtemplate-debugging -Wtraditional -Wtrigraphs
...@@ -1124,7 +1124,8 @@ have meanings only for C++ programs: ...@@ -1124,7 +1124,8 @@ have meanings only for C++ programs:
Do not assume @samp{inline} for functions defined inside a class scope. Do not assume @samp{inline} for functions defined inside a class scope.
@xref{Optimize Options,,Options That Control Optimization}. @xref{Optimize Options,,Options That Control Optimization}.
@item -Woverloaded-virtual @item -Wold-style-cast
@itemx -Woverloaded-virtual
@itemx -Wtemplate-debugging @itemx -Wtemplate-debugging
Warnings that apply only to C++ programs. @xref{Warning Warnings that apply only to C++ programs. @xref{Warning
Options,,Options to Request or Suppress Warnings}. Options,,Options to Request or Suppress Warnings}.
...@@ -1541,6 +1542,9 @@ Warn if an @code{extern} declaration is encountered within an function. ...@@ -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, Warn if a function can not be inlined, and either it was declared as inline,
or else the @samp{-finline-functions} option was given. 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 @item -Woverloaded-virtual
@cindex overloaded virtual fn, warning @cindex overloaded virtual fn, warning
@cindex warning for overloaded virtual fn @cindex warning for overloaded virtual fn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment