From 7c882e17dbbdb0d0fa03aa5aa2cf381ee4cf8886 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Wed, 27 Dec 2023 11:48:16 -0800 Subject: [PATCH] scons: Re-enable warnings-as-errors for `develop` branch Change-Id: I9c9898395858bad7365b36779b71d07f847bed70 --- SConstruct | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SConstruct b/SConstruct index ef4d154312..6ac3e2ff42 100755 --- a/SConstruct +++ b/SConstruct @@ -597,6 +597,13 @@ for variant_path in variant_paths: env.Append(LINKFLAGS=['-Wl,--no-keep-memory']) else: error("Unable to use --no-keep-memory with the linker") + + # Treat warnings as errors but white list some warnings that we + # want to allow (e.g., deprecation warnings). + env.Append(CCFLAGS=['-Werror', + '-Wno-error=deprecated-declarations', + '-Wno-error=deprecated', + ]) else: error('\n'.join(( "Don't know what compiler options to use for your compiler.",