Workarounded LP #905893
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 19 Dec 2011 22:27:01 +0000 (22:27 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 19 Dec 2011 22:27:01 +0000 (22:27 +0000)
removed '-pedantic' option for src/lib compilation to avoid build failure during
the inclusion of a Glib header file.
added -Wno-deprecated-deprecations option for src to avoid build failure due to new gthread deprecation warnings.

src/Makefile.am
src/lib/Makefile.am

index 622d225..1cc4d74 100644 (file)
@@ -8,7 +8,8 @@ SUBDIRS += server
 endif
 endif
 
-AM_CPPFLAGS = -Wall -pedantic -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
+# -no-deprecated-declarations to avoid some glib deprecation warnings
+AM_CPPFLAGS = -Wno-deprecated-declarations -Wall -Werror -DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
        -I$(top_srcdir)/src/lib \
        -I$(top_srcdir)/src/unity \
        $(GTK_CFLAGS)\
index 9fa01e7..9242946 100644 (file)
@@ -33,8 +33,6 @@ if LIBATIADL
 LIBS += $(LIBATIADL_LIBS)
 AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
 libpsensor_a_SOURCES += amd.c
-else
-libpsensor_a_CFLAGS += -pedantic
 endif
 
 if GTOP