@samitouri / QOSamiQemu / commits / 6d5023fdc1

configure: Remove unused variable default_cflags

configure has a variable default_cflags, which was originally added in commit bafe78ad3bc4c ("contrib/plugins: use an independent makefile") as part of it setting up the build environment for contrib/plugins, which at the time used make. However, we now build the plugins with meson, and in commit 55c84a72aba4 ("contrib/plugins: remove Makefile for contrib/plugins") we dropped the logic from configure that does that makefile setup, leaving default_cflags as an unused variable. shellcheck helpfully reports this: default_cflags='-O0 -g' ^------------^ SC2034 (warning): default_cflags appears unused. Verify use (or export if used externally). Remove the unused variable. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260317120215.2075164-1-peter.maydell@linaro.org

Peter Maydell committed Mar 23, 2026 at 09:51 UTC 6d5023fdc1ab49a86f6833e6e79acc436534be8e
1 file changed -2
configure
-2
@@ -248,7 +248,6 @@ for opt do
248 esac
249 done
250
251 -default_cflags='-O2 -g'
251 git_submodules_action="update"
252 docs="auto"
253 EXESUF=""
@@ -707,7 +706,6 @@ for opt do
706 meson_option_parse --enable-debug-graph-lock ""
707 meson_option_parse --enable-debug-mutex ""
708 meson_option_add -Doptimization=0
710 - default_cflags='-O0 -g'
709 ;;
710 --disable-tcg) tcg="disabled"
711 ;;