stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r473590 - /incubator/stdcxx/trunk/tests/self/0.printf.cpp
Date Sat, 11 Nov 2006 00:22:11 GMT
Author: sebor
Date: Fri Nov 10 16:22:11 2006
New Revision: 473590

URL: http://svn.apache.org/viewvc?view=rev&rev=473590
Log:
2006-11-10  Martin Sebor  <sebor@roguewave.com>

	* 0.printf.cpp (TEST_SPEC): Avoided using constant controlling
	expression in do/while loop to silence annoyning EDG warnings.

Modified:
    incubator/stdcxx/trunk/tests/self/0.printf.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.printf.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.printf.cpp?view=diff&rev=473590&r1=473589&r2=473590
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.printf.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.printf.cpp Fri Nov 10 16:22:11 2006
@@ -141,7 +141,9 @@
                     (long)a1, (long)a2, (long)a3, buf, s0);             \
         }                                                               \
         free (s0);                                                      \
-    } while (0)
+        RW_ASSERT (0 < ntests);                                         \
+        /* avoid EDG constant controlling expression warnings  */       \
+    } while (0 == ntests /* always false */)
 
 /***********************************************************************/
 



Mime
View raw message