Browse Source

CMakeLists: Make missing declarations a compile-time error

Ensures that our code always has its linkage explicit.
Lioncash 6 năm trước cách đây
mục cha
commit
dcbb39cdae
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

@@ -54,6 +54,7 @@ else()
     add_compile_options(
         -Wall
         -Werror=implicit-fallthrough
+        -Werror=missing-declarations
         -Werror=reorder
         -Wextra
         -Wmissing-declarations