examples: Disable a specific warning
authorEdward Hervey <bilboed@bilboed.com>
Fri, 11 May 2018 07:44:58 +0000 (09:44 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 11 May 2018 07:44:58 +0000 (09:44 +0200)
gcc 8 checks more cases in the "parentheses" checks, and unfortunately
upstream gtk headers fails with that warning.

Make that warning non-fatal

tests/examples/gl/gtk/3dvideo/Makefile.am
tests/examples/gl/gtk/filternovideooverlay/Makefile.am
tests/examples/gl/gtk/filtervideooverlay/Makefile.am
tests/examples/gl/gtk/switchvideooverlay/Makefile.am

index 5738e84..81f88ee 100644 (file)
@@ -4,7 +4,7 @@ noinst_HEADERS = mviewwidget.h
 
 3dvideo_SOURCES = mviewwidget.c main.cpp
 
-3dvideo_CXXFLAGS=$(GST_CXXFLAGS)
+3dvideo_CXXFLAGS=$(GST_CXXFLAGS) -Wno-error=parentheses
 3dvideo_CFLAGS=$(GST_CFLAGS)
 
 3dvideo_CPPFLAGS=\
index 5714774..08ab42d 100644 (file)
@@ -6,7 +6,7 @@ filternovideooverlay_CXXFLAGS= \
        $(GST_PLUGINS_BASE_CFLAGS) \
        $(GST_CXXFLAGS) \
        $(GL_CFLAGS) \
-       $(GTK_CFLAGS)
+       $(GTK_CFLAGS) -Wno-error=parentheses
 
 filternovideooverlay_LDADD= \
        $(GST_LIBS)  \
index 975359d..2d1bbdb 100644 (file)
@@ -4,7 +4,7 @@ filtervideooverlay_SOURCES = main.cpp
 
 filtervideooverlay_CXXFLAGS=\
        $(GST_PLUGINS_BASE_CFLAGS) $(GST_CXXFLAGS) \
-       $(GL_CFLAGS) $(GTK_CFLAGS) $(X11_CFLAGS)
+       $(GL_CFLAGS) $(GTK_CFLAGS) $(X11_CFLAGS) -Wno-error=parentheses
 filtervideooverlay_LDADD=../libgstgtkhelper.la \
        $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
        $(GST_LIBS) $(GL_LIBS) $(GTK_LIBS) $(X11_LIBS)
index 94017c3..ba59cae 100644 (file)
@@ -4,7 +4,7 @@ switchvideooverlay_SOURCES = main.cpp
 
 switchvideooverlay_CXXFLAGS=\
        $(GST_PLUGINS_BASE_CFLAGS) $(GST_CXXFLAGS) \
-       $(GL_CFLAGS) $(GTK_CFLAGS) $(X_CFLAGS)
+       $(GL_CFLAGS) $(GTK_CFLAGS) $(X_CFLAGS) -Wno-error=parentheses
 switchvideooverlay_LDADD=../libgstgtkhelper.la \
        $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_API_VERSION@.la \
        $(top_builddir)/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la \