mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Silencing warnings about potential comma mis-use.
This commit is contained in:
6
3rdparty/stb/stb_image.h
vendored
6
3rdparty/stb/stb_image.h
vendored
@@ -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
|
||||||
|
|||||||
6
3rdparty/tinyexr/tinyexr.h
vendored
6
3rdparty/tinyexr/tinyexr.h
vendored
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user