]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / operators / wchar_t / 1.cc
index 8b0ad3c5d3120a7d0f0531f06430c77079d44275..db757a71d3610dac63de44b7d1003cf54bf5aad9 100644 (file)
@@ -1,6 +1,6 @@
 // 1999-05-07 bkoz
 
-// Copyright (C) 1999-2015 Free Software Foundation, Inc.
+// Copyright (C) 1999-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -25,8 +25,6 @@
 
 int test01(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str1;
   std::wstring str2;
   
@@ -34,11 +32,11 @@ int test01(void)
   // 1:8-chars_8-chars_
   // 2:8-chars_8-chars_
   str1 = std::wstring(L"8-chars_") + L"8-chars_";
-  str1.c_str();
+  (void) str1.c_str();
   // wprintf("1:%s\n", str1.c_str());
   str2 = str1 + L"7-chars";
   // wprintf("2:%s\n", str1.c_str()); //str1 is gone
-  str1.c_str();
+  (void) str1.c_str();
   return 0;
 }