From e7fbdb0f8dd5662b44d75c0b92f34bf2eeb4fe41 Mon Sep 17 00:00:00 2001 From: Thomas Kuschel Date: Sun, 18 Oct 2026 21:07:01 +0200 Subject: [PATCH] add compiler directive for no-include-next in both build_flags and build_src_flags --- platformio.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 67d840e..36486b9 100644 --- a/platformio.ini +++ b/platformio.ini @@ -23,7 +23,7 @@ build_flags = -D CCACHE_ENABLE=1 ; Treats ESP-IDF libc extensions headers as system headers to suppress external warnings ; -isystem /home/tom/.platformio/packages/framework-espidf/components/esp_libc/platform_include - + -Wno-include-next ; --- STRICT MODE FOR PROJECT APPLICATION CODE ONLY --- ; These flags are strictly applied ONLY to C++ files inside the src/ directory. build_src_flags = @@ -39,5 +39,7 @@ build_src_flags = -Wconversion ; Warns if a local variable shadows another variable in scope -Wshadow + + -Wno-include-next ; Promotes all warnings to hard compilation errors to guarantee clean code ;-Werror