Warning suppression on testcase using clang

This commit is contained in:
William S Fulton 2019-06-07 08:22:54 +01:00
commit 3045ba3532

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