mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
cmake: add -Wmissing-prototypes (like autotools has)
(cherry picked from commit 49a367e6cfb9b9bc8d1b04cbfb834ec3e0c1d84d)
This commit is contained in:
parent
faa4e3735a
commit
3da21a9491
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user