From a7e671cb2df7455d87bfbbe0dc971068b19a54f7 Mon Sep 17 00:00:00 2001 From: Egor Tsyganchuk Date: Thu, 1 Oct 2026 09:36:29 +0300 Subject: [PATCH] Suppress unused variable warnings in CFLAGS to reduce noise when NO_STDOUT_DEBUG is enabled --- wpa_supplicant/.config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpa_supplicant/.config b/wpa_supplicant/.config index 4659e54..d113da7 100644 --- a/wpa_supplicant/.config +++ b/wpa_supplicant/.config @@ -249,6 +249,9 @@ CONFIG_CTRL_IFACE=y # if debugging code is not needed. The size reduction can be around 35% # (e.g., 90 kB). CONFIG_NO_STDOUT_DEBUG=y +# With NO_STDOUT_DEBUG wpa_printf() expands to nothing, so variables and +# helpers used only for debug output become "unused". Silence that noise. +CFLAGS += -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function # Remove WPA support, e.g., for wired-only IEEE 802.1X supplicant, to save # 35-50 kB in code size.