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:
William S Fulton 2015-02-11 19:29:39 +00:00
commit 74f392ce9a

View file

@ -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
%{