This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Suppress warning
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 20 Aug 2004 12:31:48 +0200
- Subject: [v3] Suppress warning
Hi,
the front end is improving and emits more warning...
Tested x86-linux, committing to mainline.
Paolo.
////////////////
2004-08-20 Paolo Carlini <pcarlini@suse.de>
* include/c_std/cmath.tcc (__cmath_power): Suppress assignment
used as truth value warning.
diff -urN libstdc++-v3-orig/include/c_std/cmath.tcc libstdc++-v3/include/c_std/cmath.tcc
--- libstdc++-v3-orig/include/c_std/cmath.tcc 2004-03-11 11:42:26.000000000 +0100
+++ libstdc++-v3/include/c_std/cmath.tcc 2004-08-20 12:26:55.000000000 +0200
@@ -40,7 +40,7 @@
{
_Tp __y = __n % 2 ? __x : 1;
- while (__n >>= 1)
+ while ((__n >>= 1))
{
__x = __x * __x;
if (__n % 2)