]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/26_numerics/c_math.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 26_numerics / c_math.cc
index f01e4868b44d35b20d1795d5e1d910ee4c494191..60cb5d05a01b37a92f69d4e4519563d832cab526 100644 (file)
@@ -44,7 +44,7 @@ test02()
 int
 test03()
 {
-  double powtest = std::pow(2., 0);
+  double powtest __attribute__((unused)) = std::pow(2., 0);
   return 0;
 }
 
@@ -52,7 +52,7 @@ test03()
 int
 test04()
 {
-  bool test = true;
+  bool test __attribute__((unused)) = true;
   float x[2] = {1, 2};
   float y = 3.4;
   std::modf(y, &x[0]);