From 97696859689b7da90645dff9d8e6f676291a9167 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 3 Feb 2022 10:54:07 +0000 Subject: chore(cmake): cleanup compile options --- viv/CMakeLists.txt | 14 +++++--------- viv/cli.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/viv/CMakeLists.txt b/viv/CMakeLists.txt index 663ec56..9b5f05c 100644 --- a/viv/CMakeLists.txt +++ b/viv/CMakeLists.txt @@ -19,22 +19,18 @@ set_target_properties(${PROJECT_NAME} PROPERTIES target_compile_options(${PROJECT_NAME} PUBLIC -std=c99 - # -ansi -Wall -Wextra - -Werror # =pedantic + -Werror=pedantic -Wno-unused-function - # -Wpedantic - # -pedantic - # -pedantic-errors + -Wpedantic + -pedantic-errors -march=native # -03 -D_XOPEN_SOURCE=500 - -D_POSIX_C_SOURCE=200112L - -g - -fsanitize=address + # -fsanitize=address ) -target_link_options(${PROJECT_NAME} PUBLIC -fsanitize=address) +# target_link_options(${PROJECT_NAME} PUBLIC -fsanitize=address) find_package(OpenSSL REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE diff --git a/viv/cli.c b/viv/cli.c index 0311886..65b92c0 100644 --- a/viv/cli.c +++ b/viv/cli.c @@ -13,7 +13,7 @@ CLI_handle CLI_cli(int argc, const char *argv[]) { CLI_handle cli_handle; - cli_handle.options = 0b0000; + cli_handle.options = 0x0; /* 0b0000 */ bool *help = flag_bool( "help", -- cgit v1.2.3