mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some compiler warnings
This commit is contained in:
parent
9ab9b28f46
commit
102ed4a9f2
15 changed files with 115 additions and 107 deletions
|
|
@ -35,18 +35,23 @@ namespace juce
|
|||
namespace jpeglibNamespace
|
||||
{
|
||||
#if JUCE_INCLUDE_JPEGLIB_CODE || ! defined (JUCE_INCLUDE_JPEGLIB_CODE)
|
||||
#if JUCE_MINGW
|
||||
typedef unsigned char boolean;
|
||||
#endif
|
||||
|
||||
#if JUCE_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wconversion"
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#if __has_warning("-Wcomma")
|
||||
#pragma clang diagnostic ignored "-Wcomma"
|
||||
#if JUCE_MINGW
|
||||
typedef unsigned char boolean;
|
||||
#endif
|
||||
|
||||
#if JUCE_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wconversion"
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-register"
|
||||
#if __has_warning("-Wcomma")
|
||||
#pragma clang diagnostic ignored "-Wcomma"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if JUCE_GCC && __GNUC__ > 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wshift-negative-value"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define JPEG_INTERNALS
|
||||
#undef FAR
|
||||
|
|
@ -121,9 +126,13 @@ namespace jpeglibNamespace
|
|||
#include "jpglib/jutils.c"
|
||||
#include "jpglib/transupp.c"
|
||||
|
||||
#if JUCE_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#if JUCE_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#if JUCE_GCC && __GNUC__ > 5
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
#else
|
||||
#define JPEG_INTERNALS
|
||||
#undef FAR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue