From: Azat Khuzhin Date: Sat, 25 May 2019 14:28:53 +0000 (+0300) Subject: cmake: add -Wmissing-prototypes (like autotools has) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49a367e6cfb9b9bc8d1b04cbfb834ec3e0c1d84d;p=libevent cmake: add -Wmissing-prototypes (like autotools has) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fd3375bc..8eafe860 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})