mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:13:35 +08:00
Fixed confusing else clause, added to coding standard.
This commit is contained in:
@@ -510,7 +510,7 @@ function(px4_add_common_flags)
|
||||
list(APPEND warnings
|
||||
-Wno-unused-const-variable
|
||||
)
|
||||
else(${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
|
||||
else()
|
||||
list(APPEND warnings
|
||||
-Werror=unused-but-set-variable
|
||||
-Wformat=1
|
||||
|
||||
Reference in New Issue
Block a user