mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
configure: Fix setting of extra compiler warning flags
This commit is contained in:
parent
60ebfbc595
commit
7bd9b2aa5c
1 changed files with 2 additions and 7 deletions
|
@ -834,15 +834,10 @@ dnl *** finalize CFLAGS, LDFLAGS, LIBS
|
||||||
|
|
||||||
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
|
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
|
||||||
dnl make sure it doesn't complain about unused variables if debugging is disabled
|
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=""])
|
||||||
AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [
|
|
||||||
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
|
|
||||||
-Wwrite-strings -Wformat-security -Wold-style-definition
|
|
||||||
-Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
|
|
||||||
-Wnested-externs $NO_WARNINGS])
|
|
||||||
|
|
||||||
dnl define an ERROR_CFLAGS Makefile variable
|
dnl define an ERROR_CFLAGS Makefile variable
|
||||||
AG_GST_SET_ERROR_CFLAGS([$FATAL_WARNINGS], [$NO_WARNINGS])
|
AG_GST_SET_ERROR_CFLAGS([$FATAL_WARNINGS], [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs $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