mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-02 22:14:37 +00:00
warning fixes, signed vs unsigned mismatch, cleanups, c++98 compat
many many more to do but it's a little step closer to get rid of warnings
This commit is contained in:
parent
ebf49310b3
commit
dd7ab0448f
45 changed files with 227 additions and 369 deletions
17
BBGE/Base.h
17
BBGE/Base.h
|
@ -33,9 +33,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#define compile_assert(pred) switch(0){case 0:case (pred):;}
|
||||
|
||||
// C++11's override specifier is too useful not to use it if we have it
|
||||
#if (__cplusplus >= 201103L) || (defined(_MSC_VER) && (_MSC_VER+0 >= 1900))
|
||||
#define OVERRIDE override
|
||||
// C++11's override specifier is too useful not to use it if we have it.
|
||||
// However, clang warns about it when -Wc++98-compat is active. Silence this here.
|
||||
/*#if defined(__GNUC__) && (__cplusplus >= 201103L)
|
||||
# define DO_PRAGMA(X) _Pragma(#X)
|
||||
# define OVERRIDE DO_PRAGMA(GCC diagnostic push) DO_PRAGMA(GCC diagnostic ignored "-Wc++98-compat") override DO_PRAGMA(GCC diagnostic pop)
|
||||
#endif*/
|
||||
|
||||
|
||||
#ifndef OVERRIDE
|
||||
# if (__cplusplus >= 201103L) || (defined(_MSC_VER) && (_MSC_VER+0 >= 1900))
|
||||
# define OVERRIDE override
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef OVERRIDE
|
||||
|
@ -72,7 +81,7 @@ namespace internal
|
|||
#pragma warning(disable:26812) // unscoped enum
|
||||
//#pragma warning(disable:4706) // assignment within conditional expression
|
||||
|
||||
//#pragma warning(disable:4389) // signed/unsigned mismatch
|
||||
#pragma warning(disable:4389) // signed/unsigned mismatch
|
||||
|
||||
//#pragma warning(disable:4189) // UqqqqSEFUL: local variable is initialized but not referenced
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue