]> granicus.if.org Git - libevent/commitdiff
cmake: add -Wmissing-prototypes (like autotools has)
authorAzat Khuzhin <azat@libevent.org>
Sat, 25 May 2019 14:28:53 +0000 (17:28 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 25 May 2019 14:28:53 +0000 (17:28 +0300)
CMakeLists.txt

index fd3375bca71b6184c336838dd07e0841de3cf5ef..8eafe860bb7d8da0e52f53133bddafeb53f835d6 100644 (file)
@@ -262,6 +262,7 @@ if (${GNUC})
          -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes
 
          -fno-strict-aliasing # gcc 2.9.5+
+         -Wmissing-prototypes
 
          # gcc 4
          -Winit-self
@@ -276,7 +277,7 @@ if (${GNUC})
          # gcc 4.5
          -Wlogical-op
 
-        -Wwrite-strings
+         -Wwrite-strings
     )
 
     if (${CLANG})