summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2020-08-20 08:21:49 -0700
committerPatrick Ohly <patrick.ohly@intel.com>2020-12-05 21:28:08 +0100
commit8f7fc79007d4e9640e059fb8df8021558efe4afc (patch)
tree536ea141b1ddfc069f97e46a80c938b48d23bba1
parentf9ca9e34de3dccced883122fd3ecae99cb7ba510 (diff)
build: avoid deprecation warning
-Wno-deprecated-declarations is needed everywhere (i.e. not just in certain modules, like SYNCEVO_WFLAGS_DEPRECATED) because EDS on Ubuntu Eon uses the deprecated GDateTime in its header, which we included through our EDS/libical wrapper even when not actually used.
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a95d15dd..102794fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,9 +83,13 @@ AX_BOOST_BASE(1.34)
# TODO: Fix code to pass with -pedantic -Wextra.
# -Wno-unknown-pragmas needed because icalstrdup.h
# currently uses the "#pragma }" trick. Should remove that.
+# -Wno-deprecated-declarations is needed everywhere (i.e. not just in certain
+# modules, like SYNCEVO_WFLAGS_DEPRECATED) because EDS on Ubuntu Eon uses
+# the deprecated GDateTime in its header, which we included through our
+# EDS/libical wrapper even when not actually used.
DK_ARG_ENABLE_WARNINGS([SYNCEVO_WFLAGS],
[-Wall -Wno-unknown-pragmas],
- [-Wall -Wno-unknown-pragmas],
+ [-Wall -Wno-unknown-pragmas -Wno-deprecated-declarations],
[])
# Fix code to work without deprecated methods: G GDK GDK_PIXBUF CAIRO PANGO GTK