mirror of
https://github.com/boostorg/function.git
synced 2025-07-29 12:27:15 +02:00
Additional Clang warning fixes
This commit is contained in:
@ -7,8 +7,10 @@
|
|||||||
|
|
||||||
// For more information, see http://www.boost.org
|
// For more information, see http://www.boost.org
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__) && defined(__has_warning)
|
||||||
# pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
# if __has_warning( "-Wself-assign-overloaded" )
|
||||||
|
# pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/function.hpp>
|
#include <boost/function.hpp>
|
||||||
|
@ -7,8 +7,10 @@
|
|||||||
|
|
||||||
// For more information, see http://www.boost.org
|
// For more information, see http://www.boost.org
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__) && defined(__has_warning)
|
||||||
# pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
# if __has_warning( "-Wself-assign-overloaded" )
|
||||||
|
# pragma clang diagnostic ignored "-Wself-assign-overloaded"
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/function.hpp>
|
#include <boost/function.hpp>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
struct Y {
|
struct Y {
|
||||||
Y(int y = 0) : y_(y) {}
|
Y(int y = 0) : y_(y) {}
|
||||||
bool operator==(const Y& rhs) { return y_ == rhs.y_; }
|
bool operator==(const Y& rhs) const { return y_ == rhs.y_; }
|
||||||
private:
|
private:
|
||||||
int y_;
|
int y_;
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
struct Y {
|
struct Y {
|
||||||
Y(int y = 0) : y_(y) {}
|
Y(int y = 0) : y_(y) {}
|
||||||
bool operator==(const Y& rhs) { return y_ == rhs.y_; }
|
bool operator==(const Y& rhs) const { return y_ == rhs.y_; }
|
||||||
private:
|
private:
|
||||||
int y_;
|
int y_;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user