From: Christian Brauner Date: Sun, 23 Sep 2018 11:19:55 +0000 (+0200) Subject: autotools: support -Wstrict-prototypes X-Git-Tag: lxc-3.1.0~92^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=246736be3842a698d644f5ab820a7acefdf58f9e;p=thirdparty%2Flxc.git autotools: support -Wstrict-prototypes Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index 29fa37b52..9c833e6e4 100644 --- a/configure.ac +++ b/configure.ac @@ -686,6 +686,7 @@ LXC_CHECK_TLS AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -fdiagnostics-color"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-implicit-fallthrough], [CFLAGS="$CFLAGS -Wimplicit-fallthrough"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"],,[-Werror]) +AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"],,[-Werror]) CFLAGS="$CFLAGS -Wvla -std=gnu11" if test "x$enable_werror" = "xyes"; then diff --git a/src/lxc/log.h b/src/lxc/log.h index 1050dc604..9cab04a13 100644 --- a/src/lxc/log.h +++ b/src/lxc/log.h @@ -477,5 +477,5 @@ extern int lxc_log_set_file(int *fd, const char *fname); extern const char *lxc_log_get_file(void); extern void lxc_log_set_prefix(const char *prefix); extern const char *lxc_log_get_prefix(void); -extern void lxc_log_options_no_override(); +extern void lxc_log_options_no_override(void); #endif