Silencing warnings about potential comma mis-use.

This commit is contained in:
Johan Sköld
2018-01-30 21:29:22 -08:00
parent 8fd3fce6be
commit d3fac786da
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
#if defined(__has_warning)
# if __has_warning("-Wcomma")
# pragma GCC diagnostic ignored "-Wcomma" // Possible misuse of comma operator here
# endif
#endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
# pragma warning(disable:4244) // warning C4244: '=': conversion from 'int' to 'stbi__uint16', possible loss of data # pragma warning(disable:4244) // warning C4244: '=': conversion from 'int' to 'stbi__uint16', possible loss of data
# pragma warning(disable:4245) // warning C4245: 'argument': conversion from 'int' to 'char', signed/unsigned mismatch # pragma warning(disable:4245) // warning C4245: 'argument': conversion from 'int' to 'char', signed/unsigned mismatch

View File

@@ -1,3 +1,9 @@
#if defined(__has_warning)
# if __has_warning("-Wcomma")
# pragma GCC diagnostic ignored "-Wcomma" // Possible misuse of comma operator here
# endif
#endif
/* /*
Copyright (c) 2014 - 2016, Syoyo Fujita Copyright (c) 2014 - 2016, Syoyo Fujita
All rights reserved. All rights reserved.