There was an idiom to test with LL_DARWIN if the compiler used is clang. This is not correct, as clang is available on all 3 platforms. The correct way to check for this is via __clang__ (https://clang.llvm.org/docs/LanguageExtensions.html#builtin-macros)
parent
383e250fa6
commit
c16a364377
|
|
@ -16,7 +16,7 @@
|
|||
// #include "include_kdu_xxxx.h"
|
||||
// // kdu_xxxx #undef'ed by include_kdu_xxxx.h
|
||||
|
||||
#if LL_DARWIN
|
||||
#if __clang__
|
||||
// don't *really* want to rebuild KDU so turn off specific warnings for this header
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wself-assign-field"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
// Class to test
|
||||
#include "llimagej2ckdu.h"
|
||||
|
||||
#if LL_DARWIN
|
||||
#if __clang__
|
||||
// For this source, it's true that private fields in llkdumem.h are unused.
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
#include "llrngwriter.h"
|
||||
#include "lluicolor.h"
|
||||
|
||||
#if LL_DARWIN
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdelete-incomplete"
|
||||
#include "lluictrlfactory.h"
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ public:
|
|||
{
|
||||
LL_WARNS() << "Widget in " << filename << " was of type " << typeid(view).name() << " instead of expected type " << typeid(T).name() << LL_ENDL;
|
||||
|
||||
#if LL_DARWIN
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdelete-incomplete"
|
||||
delete view;
|
||||
|
|
|
|||
Loading…
Reference in New Issue