cmake: add -Wmissing-prototypes (like autotools has)

(cherry picked from commit 49a367e6cfb9b9bc8d1b04cbfb834ec3e0c1d84d)
This commit is contained in:
Azat Khuzhin 2019-05-25 17:28:53 +03:00
parent faa4e3735a
commit 3da21a9491
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View 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})