fix: warnings fix (after -Wall -Wextra)
This commit is contained in:
@@ -3,6 +3,12 @@ project(fz-lang
|
||||
LANGUAGES C)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
add_compile_options(-Wall -Wextra -Werror=implicit-function-declaration)
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_compile_options(-fsanitize=address,undefined -g)
|
||||
add_link_options(-fsanitize=address,undefined)
|
||||
endif()
|
||||
|
||||
include_directories(include)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user