This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]