summaryrefslogtreecommitdiff
path: root/guile
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-12-04 22:15:57 +0100
committerLudovic Courtès <ludo@gnu.org>2014-12-04 22:17:18 +0100
commit2134c8ab46615a9be99a05edccec3213de2d354d (patch)
tree0828f6c637e897a4c38deb16b7042d225c81e376 /guile
parent916b3cc34be7831bec77739fe5fb91926c3ca94f (diff)
downloadgnutls-2134c8ab46615a9be99a05edccec3213de2d354d.tar.gz
guile: Build with warnings.
* guile/src/Makefile.am (AM_CFLAGS) [HAVE_GCC]: Add -Wall -Wextra -Wno-unused-parameter.
Diffstat (limited to 'guile')
-rw-r--r--guile/src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
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