Commit 0c563715 by Paolo Carlini Committed by Paolo Carlini

freestanding.cc: Avoid -Wall warnings.

2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/17_intro/freestanding.cc: Avoid -Wall warnings.

From-SVN: r157572
parent 28de604e
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&&),
......
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment