Skip to content

Commit

Permalink
always enable -ansi option
Browse files Browse the repository at this point in the history
Signed-off-by: Yonggang Luo <[email protected]>
  • Loading branch information
lygstate authored and eyalroz committed Jul 19, 2024
1 parent 52dfd4a commit f31ec38
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 @@ -109,7 +109,7 @@ if (CMAKE_C_COMPILER_ID STREQUAL "MSVC")
target_compile_options(printf PRIVATE /W4)
elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_options(printf PRIVATE -Wall -Wextra -pedantic -Wconversion)
target_compile_options(printf PRIVATE -Wall -Wextra -pedantic -Wconversion -ansi)
if (ALIAS_STANDARD_FUNCTION_NAMES)
# This is important for preventing our aliased implementation
# from being replaced, e.g. printf("%c", 'a') by putchar('a');
Expand Down

0 comments on commit f31ec38

Please sign in to comment.