Skip to content

Commit

Permalink
Add -Werror=return-type to CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
james1236 authored Nov 27, 2024
1 parent 693f65e commit 4777c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if("${device.cpu_opts}" STRGREATER "")
set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} ${device.cpu_opts}")
endif()

set(_C_FAMILY_FLAGS_INIT "-fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -Wno-unused-parameter")
set(_C_FAMILY_FLAGS_INIT "-fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -Wno-unused-parameter -Werror=return-type")

# asm
if("${device.asm_flags}" STRGREATER "")
Expand Down

0 comments on commit 4777c5c

Please sign in to comment.