mirror of
https://github.com/boostorg/config.git
synced 2026-07-21 13:13:36 +00:00
Warning suppressions.
This commit is contained in:
@@ -66,6 +66,7 @@ int test()
|
||||
|
||||
my_uint128_t ii(2), jj(1), kk;
|
||||
kk = ii / jj;
|
||||
(void)kk;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -47,12 +47,12 @@ struct parse_int<base, val, c, Digits...>
|
||||
char_value, Digits...>::value };
|
||||
};
|
||||
|
||||
my_literal operator "" _suf1(unsigned long long v)
|
||||
my_literal operator ""_suf1(unsigned long long v)
|
||||
{
|
||||
return my_literal(v);
|
||||
}
|
||||
template <char...PACK>
|
||||
my_literal operator "" _bin()
|
||||
my_literal operator ""_bin()
|
||||
{
|
||||
return parse_int<2, 0, PACK...>::value;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ const int &foo(const int &x)
|
||||
|
||||
int test()
|
||||
{
|
||||
int j;
|
||||
int j = 0;
|
||||
decltype(auto) x = foo(j);
|
||||
quiet_warning(x);
|
||||
return 0;
|
||||
|
||||
@@ -23,6 +23,11 @@ int test()
|
||||
using std::execution::seq;
|
||||
using std::execution::par;
|
||||
using std::execution::par_unseq;
|
||||
|
||||
(void)seq;
|
||||
(void)par;
|
||||
(void)par_unseq;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ int foo( int i, int j) {
|
||||
int test() {
|
||||
int i = 1, j = 2;
|
||||
typename std::invoke_result<int(&)(int,int), int, int>::type t = std::invoke( foo, i, j);
|
||||
(void)t;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user