From a2e741ea092c836d9ba58c347ea8c03d155f9321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Mon, 26 Aug 2024 12:33:19 +0200 Subject: [PATCH] Fix warning muting not ocurring at all levels --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 569ee24d8506..6de944115d31 100644 --- a/SConstruct +++ b/SConstruct @@ -835,7 +835,7 @@ else: # GCC, Clang if cc_version_major >= 12: # False positives in our error macros, see GH-58747. common_warnings += ["-Wno-return-type"] elif methods.using_clang(env) or methods.using_emcc(env): - common_warnings += ["-Wshadow-field-in-constructor", "-Wshadow-uncaptured-local"] + common_warnings += ["-Wshadow-field-in-constructor", "-Wshadow-uncaptured-local", "-Wno-undefined-var-template"] # We often implement `operator<` for structs of pointers as a requirement # for putting them in `Set` or `Map`. We don't mind about unreliable ordering. common_warnings += ["-Wno-ordered-compare-function-pointers"]