From e1bed147a369a09a118ebb3d8af6edae87b525fc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 12 Oct 2024 10:33:42 -0400 Subject: [PATCH] build: Add advanced option to treat all warnings as errors. Change-Id: I235f93d72bfc33243454edd04e45805b5c795f17 --- tools/configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/configure b/tools/configure index 4b4abb03df..4742e898b9 100755 --- a/tools/configure +++ b/tools/configure @@ -953,8 +953,9 @@ whichadvanced () { interact=1 echo "" printf "Enter your developer options (press only enter when done)\n\ -(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial, (W)in32 crosscompile,\n\ -Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild " +(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial,\n\ +(W)in32 crosscompile, Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, \n\ +S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild, (E)rror on warnings" if [ "$modelname" = "iaudiom5" ]; then printf ", (F)M radio MOD" fi @@ -1057,6 +1058,10 @@ Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser echo "LTO build enabled" LTO_ARG="export USE_LTO=y" ;; + [Ee]) + echo "Treating all warnings as errors" + GCCOPTS="$GCCOPTS -Werror" + ;; "") # Match enter press when finished with advanced options cont=0 ;;