Suppress clang warning in testcase
For Octave compiling preproc C test as C++ code: Suppress: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
This commit is contained in:
parent
5ba14168f7
commit
74f392ce9a
1 changed files with 7 additions and 0 deletions
|
|
@ -11,6 +11,13 @@
|
|||
#pragma SWIG nowarn=890 /* lots of Go name conflicts */
|
||||
#pragma SWIG nowarn=206 /* Unexpected tokens after #endif directive. */
|
||||
|
||||
%{
|
||||
#if defined(__clang__)
|
||||
//Suppress: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
|
||||
#pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
||||
#endif
|
||||
%}
|
||||
|
||||
/* check __cplusplus case */
|
||||
%header
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue