]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
guile: Build with warnings.
authorLudovic Courtès <ludo@gnu.org>
Thu, 4 Dec 2014 21:15:57 +0000 (22:15 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 4 Dec 2014 21:17:18 +0000 (22:17 +0100)
* guile/src/Makefile.am (AM_CFLAGS) [HAVE_GCC]: Add -Wall -Wextra
  -Wno-unused-parameter.

guile/src/Makefile.am

index 21efaa4e53d0be5cf375e4b7fa22804866986a58..d615e6da6a9f43c45dd24c034754bafd49bba1b4 100644 (file)
@@ -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