@@ -81,4 +81,55 @@ if (CONFIG_NRF70_BM_LIB)
81
81
endif ()
82
82
83
83
target_link_libraries (nrf70-bm-lib PRIVATE nrf70-zep-shim nrf-wifi-osal)
84
+
85
+ target_compile_options (nrf70-bm-lib PRIVATE
86
+ -Wall # All warnings
87
+ -Wextra # Extra warnings
88
+ -Werror # Warnings as errors
89
+ -Wformat=2 # Format string checks
90
+ -Wformat-security # Security issues with format strings
91
+ -Wnull-dereference # Null pointer dereferences
92
+ -Wstack-protector # Stack protection
93
+ -fstack-protector-strong # Strong stack protection
94
+ -Warray-bounds # Array bounds checking
95
+ -Wstringop-overflow # String operation overflow
96
+ -Wconversion # Implicit conversions
97
+ -Wsign-conversion # Sign conversions
98
+ -Wmissing-include -dirs # Missing include directories
99
+ -Wcast-align # Pointer cast alignment
100
+ -Wcast-qual # Pointer cast dropping qualifiers
101
+ -Wdiscarded-qualifiers # Discarded qualifiers
102
+ -Wduplicated-branches # Duplicated branches
103
+ -Wduplicated-cond # Duplicated conditions
104
+ -Wlogical-op # Suspicious logical operators
105
+ -Wnull-dereference # Null pointer dereferences
106
+ -Wjump-misses-init # Goto skipping variable initialization
107
+ -Wunused-parameter # Unused parameters
108
+ -Wshift-overflow=2 # Shift overflows
109
+ -Wmissing-prototypes # Missing function prototypes
110
+ -Wredundant-decls # Redundant declarations
111
+ -Wtype-limits # Type limits
112
+ -Wshadow # Shadowed variables
113
+ -Wstrict-prototypes # Strict prototypes
114
+ -Wundef # Undefined macros
115
+ -Wuninitialized # Uninitialized variables
116
+ -Wpointer-arith # Pointer arithmetic
117
+ -Wbad-function-cast # Bad function casts
118
+ -Wstrict-overflow # Strict overflow
119
+ -Winline # Inlining issues
120
+ -Wnested-externs # Nested externs
121
+ -Wold-style-definition # Old-style definitions
122
+ -Wmissing-declarations # Missing declarations
123
+ -Wmissing-noreturn # Missing noreturn
124
+ -Wdisabled-optimization # Disabled optimizations
125
+ -Wfloat-equal # Floating point equality
126
+ -Winit-self # Initialization to self
127
+ -Wswitch-default # Missing switch default
128
+ -Wswitch-enum # Missing switch enum
129
+ -Wunsafe-loop-optimizations # Unsafe loop optimizations
130
+ -Wlogical-not -parentheses # Logical not parentheses
131
+ -Wstrict-aliasing # Strict aliasing
132
+ -Wvariadic-macros # Variadic macros
133
+ -Wvolatile-register-var # Volatile register variables
134
+ )
84
135
endif ()
0 commit comments