Disable clang C++11 warnings to permit OVERRIDE keyword.
BUG=1623 R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1431004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3980 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
d98e784f5f
commit
f6d67ae21f
@ -83,6 +83,11 @@ typedef unsigned __int64 uint64_t;
|
||||
#if defined(_MSC_VER)
|
||||
#define OVERRIDE override
|
||||
#elif defined(__clang__)
|
||||
// Clang defaults to C++03 and warns about using override. Squelch that.
|
||||
// Intentionally no push/pop here so all users of OVERRIDE ignore the warning
|
||||
// too. This is like passing -Wno-c++11-extensions, except that GCC won't die
|
||||
// (because it won't see this pragma).
|
||||
#pragma clang diagnostic ignored "-Wc++11-extensions"
|
||||
#define OVERRIDE override
|
||||
#else
|
||||
#define OVERRIDE
|
||||
|
Loading…
x
Reference in New Issue
Block a user