Commit 09ca556d authored by Kjell Ahlstedt's avatar Kjell Ahlstedt

Disable deprecated API in dependencies if --enable-warnings=fatal

* configure.ac: Disable deprecated API in glib, glibmm and libsigc++ when
building with --enable-warnings=fatal.
* libxml++/validators/parser.cc: Put #include <glibmm/threads.h> first.
Necessary when G_DISABLE_DEPRECATED is defined.
parent 7e3bafca
......@@ -42,7 +42,8 @@ MM_ARG_WITH_TAGFILE_DOC([glibmm-2.4.tag], [glibmm-2.4])
# Evaluate the --enable-warnings=level option.
MM_ARG_ENABLE_WARNINGS([LIBXMLXX_WXXFLAGS],
[-Wall],
[-pedantic -Wall -Wextra -Wno-long-long])
[-pedantic -Wall -Wextra -Wno-long-long],
[G GLIBMM SIGCXX])
# Offer the ability to omit some API from the library.
MM_ARG_DISABLE_DEPRECATED_API([LIBXMLXX])
......
......@@ -4,13 +4,16 @@
* included with libxml++ as the file COPYING.
*/
// Include glibmm/threads.h first. It must be the first file to include glib.h,
// because it temporarily undefines G_DISABLE_DEPRECATED while it includes glib.h.
#include <glibmm/threads.h> // For Glib::Threads::Mutex. Needed until the next API/ABI break.
#include "libxml++/parsers/parser.h"
#include <libxml/parser.h>
#include <memory> //For auto_ptr.
#include <map>
#include <glibmm/threads.h> // For Glib::Threads::Mutex. Needed until the next API/ABI break.
//TODO: See several TODOs in parser.h for changes at the next API/ABI break.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment