From dcbb39cdae47d2bb2cd51635f00ce3af49abcd85 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 16 Apr 2020 23:23:57 -0400 Subject: CMakeLists: Make missing declarations a compile-time error Ensures that our code always has its linkage explicit. --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3719bbc7c..3a57356ab 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -54,6 +54,7 @@ else() add_compile_options( -Wall -Werror=implicit-fallthrough + -Werror=missing-declarations -Werror=reorder -Wextra -Wmissing-declarations -- cgit v1.2.3