From b5c04e2bca76ec45caf546d6ca5516e043e781a3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 16 Apr 2020 23:23:57 -0400 Subject: [PATCH] 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 3719bbc7ca..3a57356ab3 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