Explorar el Código

CMakeLists: Make missing declarations a compile-time error

Ensures that our code always has its linkage explicit.
Lioncash hace 6 años
padre
commit
dcbb39cdae
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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