Warning suppression on testcase using clang

This commit is contained in:
William S Fulton 2019-06-07 08:22:54 +01:00
parent 4301fa548d
commit 3045ba3532
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,15 @@
%module cpp11_constexpr
%{
#if defined(__clang__)
#pragma clang diagnostic push
// Suppress: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior
// For MMM() and NNN()
#pragma clang diagnostic ignored "-Wconstexpr-not-const"
#endif
%}
%inline %{
#ifdef SWIG
#define SWIGTESTCONST const