preproc_constants warning suppression when using clang
This commit is contained in:
parent
5c1558917b
commit
5ba14168f7
1 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue