Browse Source

Disable -Wdeprecated-declarations when compiling swig-generated code
da813408128ccc8c4ff8bf77751e68e5d3a10398

thegeorg 9 months ago
parent
commit
110ac36954
1 changed files with 4 additions and 1 deletions
  1. 4 1
      build/ymake.core.conf

+ 4 - 1
build/ymake.core.conf

@@ -3383,6 +3383,7 @@ when ($CLANG == "yes") {
         ${pre=-Wno-implicit-fallthrough -fno-profile-instr-generate -fno-coverage-mapping SKIP ;ext=.rl6:SRC} \
         ${pre=-Wno-implicit-fallthrough -fno-profile-instr-generate -fno-coverage-mapping SKIP ;ext=.pyx:SRC}
     _LANG_CFLAGS_RL=-Wno-implicit-fallthrough -fno-profile-instr-generate -fno-coverage-mapping
+    _LANG_CFLAGS_SWG=-Wno-deprecated-declarations -fno-profile-instr-generate -fno-coverage-mapping
 }
 otherwise {
     _LANG_CFLAGS_FILTER=\
@@ -3390,6 +3391,7 @@ otherwise {
         ${pre=-Wno-implicit-fallthrough SKIP ;ext=.rl6:SRC} \
         ${pre=-Wno-implicit-fallthrough SKIP ;ext=.pyx:SRC}
     _LANG_CFLAGS_RL=-Wno-implicit-fallthrough
+    _LANG_CFLAGS_SWG=-Wno-deprecated-declarations
 }
 
 # tag:src-processing
@@ -3413,7 +3415,8 @@ when ($CLANG == "yes" || $CLANG_CL == "yes" || $GCC == "yes") {
     _LANG_CFLAGS_VALUE_NEW=\
         ${pre=$_LANG_CFLAGS_RL;clear;ext=.rl5;noext;input:SRC} \
         ${pre=$_LANG_CFLAGS_RL;clear;ext=.rl6;noext;input:SRC} \
-        ${pre=$_LANG_CFLAGS_RL;clear;ext=.pyx;noext;input:SRC}
+        ${pre=$_LANG_CFLAGS_RL;clear;ext=.pyx;noext;input:SRC} \
+        ${pre=$_LANG_CFLAGS_SWG;clear;ext=.swg;noext;input:SRC}
 }
 
 # Allows to add single compilation unit name to the node's 'kv' section.