]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
autotools: support -Wstrict-prototypes 2639/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 23 Sep 2018 11:19:55 +0000 (13:19 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 23 Sep 2018 18:22:41 +0000 (20:22 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
configure.ac
src/lxc/log.h

index 29fa37b52ad1290ef10193e2c64e5acbd60b473d..9c833e6e41f5d48a701105bf4f17c33dde5ec8ca 100644 (file)
@@ -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
index 1050dc604c089c3bb991740def2fb800e6ecfabc..9cab04a13acc520d07caaa856627583e7ea30db7 100644 (file)
@@ -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