diff options
| author | Fuwn <[email protected]> | 2022-02-03 10:54:07 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-02-03 10:54:07 +0000 |
| commit | 97696859689b7da90645dff9d8e6f676291a9167 (patch) | |
| tree | 7fec9f5619cca9c79d82309efc0658fb66addbd4 | |
| parent | deps(flag.h): update (diff) | |
| download | viv-97696859689b7da90645dff9d8e6f676291a9167.tar.xz viv-97696859689b7da90645dff9d8e6f676291a9167.zip | |
chore(cmake): cleanup compile options
| -rw-r--r-- | viv/CMakeLists.txt | 14 | ||||
| -rw-r--r-- | 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 @@ -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", |