src: Enable unused parameter warning
Fix warnings. Some clang-formatting was necessary. DebugPins is unused and was removed.
This commit is contained in:
parent
8b0d888952
commit
a3e14c012d
42 changed files with 110 additions and 168 deletions
|
|
@ -442,7 +442,6 @@ list(APPEND SOURCE_FILES
|
|||
drivers/SpiMaster.cpp
|
||||
drivers/Spi.cpp
|
||||
drivers/Watchdog.cpp
|
||||
drivers/DebugPins.cpp
|
||||
drivers/InternalFlash.cpp
|
||||
drivers/Hrs3300.cpp
|
||||
drivers/Bma421.cpp
|
||||
|
|
@ -509,7 +508,6 @@ list(APPEND RECOVERY_SOURCE_FILES
|
|||
drivers/SpiMaster.cpp
|
||||
drivers/Spi.cpp
|
||||
drivers/Watchdog.cpp
|
||||
drivers/DebugPins.cpp
|
||||
drivers/InternalFlash.cpp
|
||||
drivers/Hrs3300.cpp
|
||||
drivers/Bma421.cpp
|
||||
|
|
@ -625,7 +623,6 @@ set(INCLUDE_FILES
|
|||
drivers/SpiMaster.h
|
||||
drivers/Spi.h
|
||||
drivers/Watchdog.h
|
||||
drivers/DebugPins.h
|
||||
drivers/InternalFlash.h
|
||||
drivers/Hrs3300.h
|
||||
drivers/PinMap.h
|
||||
|
|
@ -689,6 +686,8 @@ include_directories(
|
|||
${CMAKE_BINARY_DIR}/src # include generated files like Version.h
|
||||
.
|
||||
../
|
||||
)
|
||||
include_directories(SYSTEM
|
||||
libs/
|
||||
FreeRTOS/
|
||||
libs/date/include
|
||||
|
|
@ -782,7 +781,7 @@ link_directories(
|
|||
|
||||
|
||||
set(COMMON_FLAGS -MP -MD -mthumb -mabi=aapcs -ftree-vrp -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin -fshort-enums -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fstack-usage -fno-exceptions -fno-non-call-exceptions)
|
||||
set(WARNING_FLAGS -Wall -Wextra -Warray-bounds=2 -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-nonliteral -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-expansion-to-defined -Wreturn-type -Werror=return-type)
|
||||
set(WARNING_FLAGS -Wall -Wextra -Warray-bounds=2 -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-nonliteral -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-expansion-to-defined -Wreturn-type -Werror=return-type)
|
||||
set(DEBUG_FLAGS -Og -g3)
|
||||
set(RELEASE_FLAGS -Os)
|
||||
set(CXX_FLAGS -fno-rtti)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue