forked from boostorg/config
Merge branch 'master' into develop
This commit is contained in:
@ -18,6 +18,7 @@ void f()
|
|||||||
{
|
{
|
||||||
// this is never called, it just has to compile:
|
// this is never called, it just has to compile:
|
||||||
int res = pthread_yield();
|
int res = pthread_yield();
|
||||||
|
(void)res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test()
|
int test()
|
||||||
|
@ -22,7 +22,7 @@ struct G
|
|||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
G m;
|
G m;
|
||||||
const G c;
|
const G c = G();
|
||||||
|
|
||||||
if (m.get() != 'l') return 1;
|
if (m.get() != 'l') return 1;
|
||||||
if (c.get() != 'c') return 1;
|
if (c.get() != 'c') return 1;
|
||||||
|
@ -18,7 +18,7 @@ namespace boost_no_cxx11_lambdas {
|
|||||||
|
|
||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
[](){};
|
(void)[](){};
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,8 @@ int test_allocator(const T& i)
|
|||||||
// and isn't currently required by anything in boost
|
// and isn't currently required by anything in boost
|
||||||
// so don't test for now...
|
// so don't test for now...
|
||||||
// a3 = a2;
|
// a3 = a2;
|
||||||
|
|
||||||
|
(void)a2;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,8 @@ struct AltStruct
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AltStruct(int x, double y) : x_{x}, y_{y} {}
|
AltStruct(int x, double y) : x_{x}, y_{y} {}
|
||||||
|
int X() const { return x_; }
|
||||||
|
double Y() const { return y_; }
|
||||||
private:
|
private:
|
||||||
int x_;
|
int x_;
|
||||||
double y_;
|
double y_;
|
||||||
|
Reference in New Issue
Block a user