]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Try to handle "function declaration isn't a prototype" warnings.
authorLudovic Courtès <ludo@chbouib.org>
Wed, 30 May 2007 21:26:43 +0000 (23:26 +0200)
committerLudovic Courtès <ludo@chbouib.org>
Wed, 30 May 2007 21:26:43 +0000 (23:26 +0200)
configure.in
guile/src/Makefile.am

index b0aba2bf024275a4d6c5a4c6eb0524745341db56..60b531bbfb0eda7ef22f529de51d177019646dd2 100644 (file)
@@ -118,6 +118,8 @@ if test "x$GAA" = "x"; then
 ***]])
 fi
 
+echo "*** GCC: $GCC"
+AM_CONDITIONAL(HAVE_GCC,   test "x$GCC" = "xyes")
 AM_CONDITIONAL(HAVE_GUILE, test "x$opt_guile_bindings" = "xyes")
 
 if test "x$opt_guile_bindings" = "xyes"; then
index 79c6eed55fc6ddcf63d3929d474d1ed36774ea6c..a960c66af1bd0311653ad7385081c8c6b5716dff 100644 (file)
@@ -54,6 +54,14 @@ libguile_gnutls_extra_v_0_la_LDFLAGS =               \
 
 AM_CPPFLAGS = -I$(builddir)
 
+if HAVE_GCC
+
+# Generated `.x' files and Guile's `scm_c_define_gsubr ()' require
+# `-Wno-strict-prototypes'.
+libguile_gnutls_v_0_la_CFLAGS += -Wno-strict-prototypes
+libguile_gnutls_extra_v_0_la_CFLAGS += -Wno-strict-prototypes
+
+endif
 
 enums.h: $(srcdir)/make-enum-header.scm
        $(GUILE_FOR_BUILD) $^ > $@