This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] Wconversion changes in 4.3
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Gerald Pfeifer" <gerald at pfeifer dot com>
- Date: Sat, 19 May 2007 16:15:26 +0100
- Subject: [wwwdocs] Wconversion changes in 4.3
:ADDPATCH wwwdocs:
Document changes to -Wconversion and "new" -Wtraditional-conversion option.
I tried to make it short and to the point so I have skipped examples.
Also, I have avoided to mention differences between C and C++ in
Wconversion behaviour (except for the -Wsign-conversion flag). All
those are explained in the documentation.
OK to commit?
2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* gcc-4.3/changes.html: -Wconversion has changed. New
-Wtraditional-conversion option.
Index: htdocs/gcc-4.3/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
retrieving revision 1.52
diff -r1.52 changes.html
39a40,55
>
> <li>The <code><a
> href="http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options"
> >-Wconversion</a></code> option has been modified. Its purpose now
> is to warn for implicit conversions that may alter a value. This
> new behavior is available for both C and C++. Warnings about
> conversions between signed and unsigned integers can be disabled
> by using <code>-Wno-sign-conversion</code>. In C++, they are
> disabled by default unless <code>-Wsign-conversion</code> is
> explicitly requested. The old behavior of
> <code>-Wconversion</code>, that is, warn for prototypes causing a
> type conversion that is different from what would happen to the
> same argument in the absence of a prototype, has been moved to a
> new option <code>-Wtraditional-conversion</code>, which is only
> available for C.</li>
>