preproc_constants warning suppression when using clang

This commit is contained in:
William S Fulton 2015-02-11 19:25:22 +00:00
commit 5ba14168f7

View file

@ -1,5 +1,12 @@
%module preproc_constants
%{
#if defined(__clang__)
//Suppress: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
#endif
%}
// Note: C types are slightly different to C++ types as (a && b) is int in C and bool in C++
// Simple constants
@ -103,9 +110,3 @@ enum MyEnum {
kValue = BIT(2)
};
%{
#if defined(__clang__)
//Suppress: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
#endif
%}