mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
CLANG: Improve compiler flags
This commit is contained in:
@@ -9,7 +9,6 @@ set(WARNINGS
|
||||
-Wpointer-arith
|
||||
-Wlogical-op
|
||||
-Wmissing-declarations
|
||||
-Wpacked
|
||||
-Wno-unused-parameter
|
||||
-Werror=format-security
|
||||
-Werror=array-bounds
|
||||
@@ -19,8 +18,11 @@ set(WARNINGS
|
||||
-Werror=unused-variable
|
||||
-Werror=double-promotion
|
||||
-Werror=reorder
|
||||
-Werror=uninitialized
|
||||
-Werror=init-self
|
||||
-Werror=uninitialized
|
||||
-Werror=init-self
|
||||
-Werror=return-type
|
||||
-Wno-packed
|
||||
-Wno-frame-larger-than=
|
||||
#-Wcast-qual - generates spurious noreturn attribute warnings,
|
||||
# try again later
|
||||
#-Wconversion - would be nice, but too many "risky-but-safe"
|
||||
|
||||
Reference in New Issue
Block a user