diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-19 14:19:23 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-03-19 14:19:23 +0000 |
commit | a2b1183490990e4e49c6db18ef679f06d6d4e569 (patch) | |
tree | 207c82057db620902c59a363f5ca758f40b94f13 /libstdc++-v3 | |
parent | 427ad90bc66e60d1b21afd88003ccaf111d247b7 (diff) | |
download | gcc-a2b1183490990e4e49c6db18ef679f06d6d4e569.tar.gz |
2010-03-19 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/17_intro/freestanding.cc: Avoid -Wall warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157572 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/17_intro/freestanding.cc | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 388b3cc7fc9..7cb2c1d5664 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2010-03-19 Paolo Carlini <paolo.carlini@oracle.com> + + * testsuite/17_intro/freestanding.cc: Avoid -Wall warnings. + 2010-03-19 Rodolfo Lima <rodolfo@rodsoft.org> * include/bits/shared_ptr.h (shared_ptr(unique_ptr&&), diff --git a/libstdc++-v3/testsuite/17_intro/freestanding.cc b/libstdc++-v3/testsuite/17_intro/freestanding.cc index 9c5ec311a21..52aa965f9ca 100644 --- a/libstdc++-v3/testsuite/17_intro/freestanding.cc +++ b/libstdc++-v3/testsuite/17_intro/freestanding.cc @@ -33,18 +33,18 @@ int main() { std::exception e; - const char* str = typeid(e).name(); + const char* str __attribute__((unused)) = typeid(e).name(); typedef std::numeric_limits<long> limit_type; - limit_type limit_l; - int r = limit_type::radix; + limit_type limit_l __attribute__((unused)); + int r __attribute__((unused)) = limit_type::radix; const char* cp = new char; delete cp; - bool b = std::is_integral<int>::value; + bool b __attribute__((unused)) = std::is_integral<int>::value; - std::initializer_list<int> ilisti; + std::initializer_list<int> ilisti __attribute__((unused)); return 0; } |