From: Ludovic Courtès Date: Wed, 30 May 2007 21:26:43 +0000 (+0200) Subject: Try to handle "function declaration isn't a prototype" warnings. X-Git-Tag: gnutls_1_7_12~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6b134bbb87a1281ef65c881506542e1f2ea3e2a;p=thirdparty%2Fgnutls.git Try to handle "function declaration isn't a prototype" warnings. --- diff --git a/configure.in b/configure.in index b0aba2bf02..60b531bbfb 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am index 79c6eed55f..a960c66af1 100644 --- a/guile/src/Makefile.am +++ b/guile/src/Makefile.am @@ -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) $^ > $@