From 9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 23 Mar 2021 15:30:25 +0000 Subject: add -Wmissing-declarations (#399) This is used by SPDK, and it's generally useful. This also uncovered some issues in the test mocking. Signed-off-by: John Levon Reviewed-by: Swapnil Ingle --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 29a40cc..72c2063 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,9 @@ set(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb") set(CMAKE_C_FLAGS_RELEASE "-O3") set(CMAKE_C_FLAGS - "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wno-missing-field-initializers") + "${CMAKE_C_FLAGS} -Wall -Werror -Wextra ") +set(CMAKE_C_FLAGS + "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wmissing-declarations") # public headers add_subdirectory(include) -- cgit v1.1