Commit 07cf8b38dbad7de3f0a5da053726d8e697a65d0d

Patrick Steinhardt 2018-07-20T09:03:10

cmake: use C90 standard for our fuzzing targets Like all our other internal code, we want to force the use of C90 for our fuzzers. Do so by setting the "C_STANDARD" property of our fuzzing targets.

1
2
3
4
5
6
7
8
9
10
11
diff --git a/fuzzers/CMakeLists.txt b/fuzzers/CMakeLists.txt
index 2da8b0b..13705fa 100644
--- a/fuzzers/CMakeLists.txt
+++ b/fuzzers/CMakeLists.txt
@@ -9,5 +9,6 @@ FOREACH(fuzz_target_src ${SRC_FUZZ})
 		LIST(APPEND ${fuzz_target_name}_SOURCES "standalone_driver.c")
 	ENDIF()
 	ADD_EXECUTABLE(${fuzz_target_name} ${${fuzz_target_name}_SOURCES})
+	SET_TARGET_PROPERTIES(${fuzz_target_name} PROPERTIES C_STANDARD 90)
 	TARGET_LINK_LIBRARIES(${fuzz_target_name} ${LIBGIT2_LIBS})
 ENDFOREACH()