Set the warnings to pedantic for my own code

Dieser Commit ist enthalten in:
tom committed 2026-10-16 12:20:38 +02:00
1 Ursprung 9fcf84162c
Commit 670c00ef70
1 Datei geändert
+24 -14
+24 -14
Datei anzeigen
@@ -1,12 +1,6 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; Project: FoxMesh
; Author: Tom OE3TKT
[platformio]
; Enable global PlatformIO Cache
@@ -20,14 +14,30 @@ monitor_speed = 115200
monitor_filters = esp32_exception_decoder
; lib_deps = bodmer/TFT_eSPI@^2.5.43
; Zwingt PlatformIO, die mit Core 6.2.0 kompatible SCons-Version zu nutzen
platform_packages =
platformio/tool-scons @ ~4.41101.0
; Forces PlatformIO to use the customized SCons engine to prevent firmware.elf build errors
;platform_packages =
; platformio/tool-scons @ ~4.41101.0
; Hardware-specific macro definitions
; Advanced Compiler Configurations and Maximum Warning Profiles
build_flags =
;-D CONFIG_IDF_TARGET_ESP32=y
-D CCACHE_ENABLE=1
; REMOVED: CONFIG_IDF_TARGET_ESP32 (automatically predefined by PlatformIO's framework engine)
-D CCACHE_ENABLE=1
-Wno-error=pedantic
-Wno-pedantic
; --- STRICT MODE FOR MY OWN CODE ONLY ---
; These flags are strictly applied ONLY to files inside the src/ directory.
; The ESP-IDF framework is completely excluded from these rules!
; Maximum Compiler Warnings (Strict Mode)
build_src_flags =
-Wall ; Enables all standard compiler warning flags
-Wextra ; Enables additional strict development warnings
-Wpedantic ; Enforces strict ISO C++ standard compliance (only on own files)
-Wconversion ; Warns on implicit type conversions (e.g., int to uint8_t)
-Wshadow ; Warns if a local variable shadows another variable in scope
-Werror ; Promotes all warnings to hard compilation errors to guarantee clean code
; Serial flashing interface configuration overrides (leave commented out for dynamic CLI arguments)
; upload_port = /dev/ttyUSB0
; monitor_port = /dev/ttyUSB0