Warning suppression on testcase using clang
This commit is contained in:
parent
4301fa548d
commit
3045ba3532
1 changed files with 9 additions and 0 deletions
|
|
@ -4,6 +4,15 @@
|
||||||
%module cpp11_constexpr
|
%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 %{
|
%inline %{
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
#define SWIGTESTCONST const
|
#define SWIGTESTCONST const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue