diff options
author | John Levon <john.levon@nutanix.com> | 2021-03-23 15:30:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 15:30:25 +0000 |
commit | 9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79 (patch) | |
tree | 3179a0a18319c3e863bd01c334de8a8fc7c68ab2 /CMakeLists.txt | |
parent | 8ba55dfb9bb54b773513e78d87d9ebe078384573 (diff) | |
download | libvfio-user-9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79.zip libvfio-user-9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79.tar.gz libvfio-user-9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79.tar.bz2 |
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 <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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) |