From: Aurelien Jacobs Date: Tue, 14 Jan 2014 22:30:02 +0000 (+0100) Subject: configure: add -Wmissing-prototypes compiler option X-Git-Tag: libsigrok-0.3.0~282 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9e2bf9d204d153de65dd98445d9d91819198196f;p=libsigrok.git configure: add -Wmissing-prototypes compiler option This should avoid introduction SR_PRIV functions when static would be enough. --- diff --git a/configure.ac b/configure.ac index c1ca46fe..7e18ed96 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,7 @@ AH_BOTTOM([#endif /* SR_CONFIG_H */]) # Enable more compiler warnings via -Wall and -Wextra. Add -fvisibility=hidden # and enforce use of SR_API to explicitly mark all public API functions. -CFLAGS="$CFLAGS -Wall -Wextra -fvisibility=hidden" +CFLAGS="$CFLAGS -Wall -Wextra -Wmissing-prototypes -fvisibility=hidden" # Checks for programs. AC_PROG_CC