mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
configure: suppress some warnings when debug is disabled
Warnings about unused variables should be suppressed if core has the debug system disabled. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676824
This commit is contained in:
parent
62532769a7
commit
ef29cc6d78
1 changed files with 6 additions and 1 deletions
|
@ -159,8 +159,13 @@ AC_SUBST(GST_LICENSE)
|
||||||
dnl set location of plugin directory
|
dnl set location of plugin directory
|
||||||
AG_GST_SET_PLUGINDIR
|
AG_GST_SET_PLUGINDIR
|
||||||
|
|
||||||
|
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
|
||||||
|
dnl make sure it doesn't complain about unused variables if debugging is disabled
|
||||||
|
NO_WARNINGS=""
|
||||||
|
AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [NO_WARNINGS=""])
|
||||||
|
|
||||||
dnl define an ERROR_CFLAGS Makefile variable
|
dnl define an ERROR_CFLAGS Makefile variable
|
||||||
AG_GST_SET_ERROR_CFLAGS($GST_GIT)
|
AG_GST_SET_ERROR_CFLAGS($GST_GIT, [$NO_WARNINGS])
|
||||||
|
|
||||||
dnl define correct level for debugging messages
|
dnl define correct level for debugging messages
|
||||||
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
|
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
|
||||||
|
|
Loading…
Reference in a new issue