From aa3b5edb6dd0442af6afe90ccc93e34eed503d2f Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 2 Apr 2014 22:12:01 -0700 Subject: [PATCH] Tell glib not to complain about the use of API recently deprecated When building with glib 2.32 or later, without this #define, it prints a warning saying: function "g_value_get_char" was declared deprecated ("Use 'g_value_get_schar' instead") Since g_value_get_schar is new in 2.32, we can't use it without #ifdef around the call point. Since the old and new functions are identical in behavior, just ask glib not to complain about the use of old functions. I don't know which is the minimum version of glib we require, so I went for the lowest available macro. Change-Id: I33f9aa8497fc6bd50fffb3c59ee7e8e7fcdfe110 Reviewed-by: Yoann Lopes --- src/gsttools/gsttools.pro | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gsttools/gsttools.pro b/src/gsttools/gsttools.pro index 2a0933bb..15edd04d 100644 --- a/src/gsttools/gsttools.pro +++ b/src/gsttools/gsttools.pro @@ -5,6 +5,7 @@ QPRO_PWD = $$PWD QT = core-private multimedia-private gui-private !static:DEFINES += QT_MAKEDLL +DEFINES += GLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 unix:!maemo*:contains(QT_CONFIG, alsa) { DEFINES += HAVE_ALSA