From: Ludovic Courtès Date: Thu, 4 Dec 2014 21:15:57 +0000 (+0100) Subject: guile: Build with warnings. X-Git-Tag: gnutls_3_4_0~502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2134c8ab46615a9be99a05edccec3213de2d354d;p=thirdparty%2Fgnutls.git guile: Build with warnings. * guile/src/Makefile.am (AM_CFLAGS) [HAVE_GCC]: Add -Wall -Wextra -Wno-unused-parameter. --- diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am index 21efaa4e53..d615e6da6a 100644 --- a/guile/src/Makefile.am +++ b/guile/src/Makefile.am @@ -61,10 +61,16 @@ AM_CPPFLAGS = \ if HAVE_GCC +AM_CFLAGS = -Wall -Wextra + # Generated `.x' files and Guile's `scm_c_define_gsubr ()' require # `-Wno-strict-prototypes'. This trick makes sure `-Wno-s-p' appears # after `-Ws-p'. -AM_CFLAGS = -Wno-strict-prototypes +AM_CFLAGS += -Wno-strict-prototypes + +# Functions generated from 'SCM_SMOB_PRINT' & co. typically have +# unused parameters. +AM_CFLAGS += -Wno-unused-parameter # The `-fgnu89-inline' option appeared in GCC 4.1.3. if HAVE_GCC_GNU89_INLINE_OPTION