[anjuta] build: disable -Werror to workaround flex(1) issue



commit 0baa64f9ffdc563854f6eac730b2a58249925437
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Nov 24 11:55:52 2012 -0500

    build: disable -Werror to workaround flex(1) issue
    
    flex(1) produces broken output and the new warnings in gnome-common
    cause the build to break because of it.
    
    Add a selective workaround by disabling -Werror=missing-prototypes for
    two directories (the ones that have flex-generated files in them).

 plugins/am-project/Makefile.am |    3 +++
 plugins/mk-project/Makefile.am |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/am-project/Makefile.am b/plugins/am-project/Makefile.am
index 1fe39c6..1416235 100644
--- a/plugins/am-project/Makefile.am
+++ b/plugins/am-project/Makefile.am
@@ -26,6 +26,9 @@ AM_CPPFLAGS = 					\
 	$(LIBANJUTA_CFLAGS) \
 	-DG_LOG_DOMAIN=\"am-project\"
 
+# flex(1) output fails this check, so disable it
+CFLAGS += -Wno-error=missing-prototypes
+
 plugin_LTLIBRARIES = \
 	libam-project.la
 
diff --git a/plugins/mk-project/Makefile.am b/plugins/mk-project/Makefile.am
index 37adcfe..52ddc0b 100644
--- a/plugins/mk-project/Makefile.am
+++ b/plugins/mk-project/Makefile.am
@@ -25,6 +25,9 @@ AM_CPPFLAGS = 					\
 	$(LIBANJUTA_CFLAGS) \
 	-DG_LOG_DOMAIN=\"mk-project\"
 
+# flex(1) output fails this check, so disable it
+CFLAGS += -Wno-error=missing-prototypes
+
 plugin_LTLIBRARIES = \
 	libmk-project.la
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]