diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2002-01-02 13:59:10 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2002-01-02 13:59:10 +0000 |
commit | 323728aa2674aefa55a6ac912dce0a48388cc479 (patch) | |
tree | b87648e849c6973022e42a9fe133b579e160eec2 /gcc/doc/invoke.texi | |
parent | 46c895ac0b9468a53f08e1875b13aca83227ec5d (diff) | |
download | gcc-323728aa2674aefa55a6ac912dce0a48388cc479.zip gcc-323728aa2674aefa55a6ac912dce0a48388cc479.tar.gz gcc-323728aa2674aefa55a6ac912dce0a48388cc479.tar.bz2 |
re PR c++/5089 (-Wold-style-cast warns about cast to void)
PR c++/5089
* doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
cp:
PR c++/5089
* decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
testsuite:
* g++.dg/warn/oldcast1.C: New test.
From-SVN: r48472
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d42df33..4a6ed0c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1557,10 +1557,10 @@ but disables the helpful warning. @item -Wold-style-cast @r{(C++ only)} @opindex Wold-style-cast -Warn if an old-style (C-style) cast is used within a C++ program. The -new-style casts (@samp{static_cast}, @samp{reinterpret_cast}, and -@samp{const_cast}) are less vulnerable to unintended effects, and much -easier to grep for. +Warn if an old-style (C-style) cast to a non-void type is used within +a C++ program. The new-style casts (@samp{static_cast}, +@samp{reinterpret_cast}, and @samp{const_cast}) are less vulnerable to +unintended effects, and much easier to grep for. @item -Woverloaded-virtual @r{(C++ only)} @opindex Woverloaded-virtual |