diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-04-02 22:12:01 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-07 11:56:22 +0200 |
commit | aa3b5edb6dd0442af6afe90ccc93e34eed503d2f (patch) | |
tree | 94641639e1f81889a82c6f2cd9939e8d1a569266 /src/gsttools | |
parent | f78193c73095918695ce68595ee4bbcd0bb978eb (diff) |
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 <yoann.lopes@digia.com>
Diffstat (limited to 'src/gsttools')
-rw-r--r-- | src/gsttools/gsttools.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsttools/gsttools.pro b/src/gsttools/gsttools.pro index 2a0933bb3..15edd04d2 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 |