From 4a28b367d790278e6ab78919a713ec4856787e83 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 27 Jun 2024 23:38:36 -0700 Subject: [PATCH] scons: Readd -Werror for the develop branch This reverts commit 6e4c1c5db7d58ef8ea1aa878a24bd5119fc80203. --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SConstruct b/SConstruct index fa6e05177a..bfdca815ed 100755 --- a/SConstruct +++ b/SConstruct @@ -552,6 +552,11 @@ for variant_path in variant_paths: env.Append(CCFLAGS=['-pipe']) env.Append(CCFLAGS=['-fno-strict-aliasing']) + # Enable -Wall and -Wextra and then disable the few warnings that + # we consistently violate + env.Append(CCFLAGS=['-Wall', '-Wundef', '-Wextra', + '-Wno-sign-compare', '-Wno-unused-parameter']) + # We always compile using C++17 env.Append(CXXFLAGS=['-std=c++17'])