diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2010-08-10 11:28:23 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2010-08-10 11:28:23 +0000 |
commit | fabe484df42f056ccd1dc0cd97f69779775c7e25 (patch) | |
tree | 56c36c1b6ab6a8d9185988ff65a7e9d223ea3cac /libstdc++-v3/testsuite/ext | |
parent | 813c6cdf63ea7d7aa28f1607cad1f26bb2cf3946 (diff) | |
download | gcc-fabe484df42f056ccd1dc0cd97f69779775c7e25.zip gcc-fabe484df42f056ccd1dc0cd97f69779775c7e25.tar.gz gcc-fabe484df42f056ccd1dc0cd97f69779775c7e25.tar.bz2 |
1.cc: Avoid -Wall warnings.
2010-08-10 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/ext/stdio_sync_filebuf/char/1.cc: Avoid -Wall
warnings.
* testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
From-SVN: r163056
Diffstat (limited to 'libstdc++-v3/testsuite/ext')
-rw-r--r-- | libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc index dab6c50..47b3372 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc @@ -1,6 +1,7 @@ // 2003-05-01 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation +// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// Free Software Foundation // // 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 @@ -29,7 +30,7 @@ void test01() bool test __attribute__((unused)) = true; const char* c_lit = "black pearl jasmine tea"; - int size = strlen(c_lit); + unsigned size = strlen(c_lit); const char* name = "stdiobuf-1.txt"; FILE* fout = fopen(name, "w"); diff --git a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc index 61e7a55..2629ecb 100644 --- a/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc @@ -1,6 +1,7 @@ // 2003-05-01 Petur Runolfsson <peturr02@ru.is> -// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation +// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +// Free Software Foundation // // 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 @@ -29,7 +30,7 @@ void test01() bool test __attribute__((unused)) = true; const char* c_lit = "black pearl jasmine tea"; const wchar_t* w_lit = L"black pearl jasmine tea"; - int size = strlen(c_lit); + unsigned size = strlen(c_lit); const char* name = "stdiobuf-1.txt"; FILE* fout = fopen(name, "w"); |