[glibmm] Avoid a deprecation warning in implelementation of deprecated API.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Avoid a deprecation warning in implelementation of deprecated API.
- Date: Wed, 23 Nov 2011 12:43:11 +0000 (UTC)
commit d7e3bb63fa8841cf1cd06befab3a7a769adff46a
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Nov 23 12:43:57 2011 +0100
Avoid a deprecation warning in implelementation of deprecated API.
* glib/glibmm/main.cc: Define GLIB_DISABLE_DEPRECATION_WARNINGS
to avoid a warning about g_source_get_current_time(),
which we must use in our own deprecated code.
ChangeLog | 8 ++++++++
glib/glibmm/main.cc | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bfbcf44..e5d0884 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2011-11-23 Murray Cumming <murrayc murrayc com>
+ Avoid a deprecation warning in implelementation of deprecated API.
+
+ * glib/glibmm/main.cc: Define GLIB_DISABLE_DEPRECATION_WARNINGS
+ to avoid a warning about g_source_get_current_time(),
+ which we must use in our own deprecated code.
+
+2011-11-23 Murray Cumming <murrayc murrayc com>
+
class.cc: Avoid compiler warnings when using -std=c++0x with g++.
* glib/glibmm/class.cc: Add casts because GTypeQuery::class_size
diff --git a/glib/glibmm/main.cc b/glib/glibmm/main.cc
index a675ee6..8bb4500 100644
--- a/glib/glibmm/main.cc
+++ b/glib/glibmm/main.cc
@@ -21,6 +21,7 @@
#include <glibmm/thread.h>
#undef G_DISABLE_DEPRECATED //So we can use newly-deprecated API, to preserve our API.
+#define GLIB_DISABLE_DEPRECATION_WARNINGS 1
#include <glibmm/main.h>
#include <glibmm/exceptionhandler.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]