[base] Compilation fails on GCC 8.0.1
@ullysses.a.eoff
Submitted by Ullysses A Eoff Link to original bug (#795765)
Description
gstreamer (master) heads/master-0-g98200ddd8dfd
gst-plugins-base (master) heads/master-0-gdbd9ff1c
With GCC 8.0.1 (default on recent Fedora 28 release), gst-plugins-base fails to compile:
video-chroma.c: In function 'video_chroma_up_v2_u16':
video-chroma.c:360:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict]
MAKE_UPSAMPLE_V2 (u16, guint16);
^
~~~~~~~~~~~~~~~
video-chroma.c:360:1: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
video-chroma.c: In function 'video_chroma_up_v2_u8':
video-chroma.c:361:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict]
MAKE_UPSAMPLE_V2 (u8, guint8);
^
~~~~~~~~~~~~~~~
video-chroma.c:361:1: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
video-chroma.c: In function 'video_chroma_down_h2_u8':
video-chroma.c:365:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Werror=restrict]
MAKE_DOWNSAMPLE_H2_ORC (u8, guint8);
^
~~~~~~~~~~~~~~~~~~~~~
video-chroma.c: In function 'video_chroma_down_v2_u16':
video-chroma.c:366:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Werror=restrict]
MAKE_DOWNSAMPLE_V2 (u16, guint16);
^
~~~~~~~~~~~~~~~~~
video-chroma.c: In function 'video_chroma_down_v2_u8':
video-chroma.c:367:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Werror=restrict]
MAKE_DOWNSAMPLE_V2 (u8, guint8);
^
~~~~~~~~~~~~~~~~~
video-chroma.c: In function 'video_chroma_down_v4_u16':
video-chroma.c:551:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Werror=restrict]
MAKE_DOWNSAMPLE_V4 (u16, guint16);
^
~~~~~~~~~~~~~~~~~
video-chroma.c: In function 'video_chroma_down_v4_u8':
video-chroma.c:552:1: error: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Werror=restrict]
MAKE_DOWNSAMPLE_V4 (u8, guint8);
^
~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [Makefile:998: libgstvideo_1.0_la-video-chroma.lo] Error 1
Can workaround with --disable-fatal-warnings.