Suppress -Wbool-comapre warnings in constant_expr_c testcase

We're deliberately testing constant expressions contains comparisons
here.
This commit is contained in:
Olly Betts 2023-11-19 21:43:13 +13:00
parent d506235a6d
commit f50cea31e0
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
/* Tests of constant expressions (C version). */
%inline %{
// Suppress warnings about constant comparisons.
#pragma GCC diagnostic ignored "-Wbool-compare"
/* % didn't work in SWIG 1.3.40 and earlier. */
const int X = 123%7;