[Xfce4-commits] <thunar:master> Add -Wno-sign-compare to the compiler flags used for gtk-doc.

Jannis Pohlmann noreply at xfce.org
Tue Sep 29 14:36:01 CEST 2009


Updating branch refs/heads/master
         to a887ee18e02d6d862767dceecfdde6e57e90155a (commit)
       from 5c38ecbcf4f13e9921214580f1d514bcc5c21e0a (commit)

commit a887ee18e02d6d862767dceecfdde6e57e90155a
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue Sep 29 14:32:27 2009 +0200

    Add -Wno-sign-compare to the compiler flags used for gtk-doc.
    
    This workaround is borrowed from xfconf. gtkdoc-scangobj.in compares
    gint64 to gulong which causes a compiler error with -Wno-sign-compare.
    An upstream bug was filed on
    
      http://bugzilla.gnome.org/show_bug.cgi?id=596730

 configure.in.in                    |    6 ++++++
 docs/reference/thunarx/Makefile.am |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/configure.in.in b/configure.in.in
index 50693c9..4cc3236 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -205,6 +205,12 @@ dnl *** Check for debugging support ***
 dnl ***********************************
 XDT_FEATURE_DEBUG([thunar_debug_default])
 
+dnl *************************************
+dnl *** Compensate for broken gtk-doc ***
+dnl *************************************
+XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
+AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
+
 dnl **************************************
 dnl *** Check for linker optimizations ***
 dnl **************************************
diff --git a/docs/reference/thunarx/Makefile.am b/docs/reference/thunarx/Makefile.am
index 92b1b01..e25361e 100644
--- a/docs/reference/thunarx/Makefile.am
+++ b/docs/reference/thunarx/Makefile.am
@@ -49,7 +49,8 @@ content_files = 							\
 INCLUDES =	 							\
 	-I$(top_srcdir) 						\
 	-I$(top_builddir) 						\
-	$(GTK_CFLAGS)
+	$(GTK_CFLAGS)							\
+	$(GTK_DOC_EXTRA_CFLAGS)
 
 GTKDOC_LIBS =  								\
 	$(top_builddir)/thunarx/libthunarx-$(THUNARX_VERSION_API).la



More information about the Xfce4-commits mailing list