forked from boostorg/config
Clear compiler warnings
[SVN r75185]
This commit is contained in:
1 parent
5ae1de8cec
commit
b899a529a5
16 files changed
+41
-7
No files matched your search
@@ -12,6 +12,8 @@
|
||||
|
||||
namespace boost_no_constexpr {
|
||||
|
||||
void quiet_warning(int){}
|
||||
|
||||
constexpr int square(int x) { return x * x; } // from N2235
|
||||
|
||||
// from 5.19:
|
||||
@@ -37,6 +39,7 @@ X<a> xx; // OK: unique conversion to int
|
||||
int test()
|
||||
{
|
||||
int i = square(5);
|
||||
quiet_warning(i);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user