diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-12-04 22:15:57 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-12-12 14:15:42 +0100 |
commit | ed82f705722fecc576c98fe0d5e18810d794ee34 (patch) | |
tree | 1a6344856702cd11c40d0581f38c8fc5c1a80f9f /guile | |
parent | b6a91284b895e8d791337848c87cc4e3ea6a05f9 (diff) | |
download | gnutls-ed82f705722fecc576c98fe0d5e18810d794ee34.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.am | 8 |
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 |