Explorar el Código

CMakeLists: Enable -Wmissing-declarations on Linux builds

Allows catching cases where internal linkage isn't specified for helper
functions when they should be marked as such.
Lioncash hace 6 años
padre
commit
fc5df84581
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

@@ -56,6 +56,7 @@ else()
         -Werror=implicit-fallthrough
         -Werror=implicit-fallthrough
         -Werror=reorder
         -Werror=reorder
         -Wextra
         -Wextra
+        -Wmissing-declarations
         -Wno-attributes
         -Wno-attributes
         -Wno-unused-parameter
         -Wno-unused-parameter
     )
     )