ci: Fix compile error using new GStreamer library

Using Fedora 38 the compilation fails due to this warning:

    In file included from /usr/include/gstreamer-1.0/gst/video/video.h:202,
                     from ../../server/gstreamer-encoder.c:27:
    /usr/include/gstreamer-1.0/gst/video/video-sei.h:39:21: error: 'H265_MISP_NANOSECONDS' defined but not used [-Werror=unused-const-variable=]
       39 | static const guint8 H265_MISP_NANOSECONDS[] = {
          |                     ^~~~~~~~~~~~~~~~~~~~~

Ignore the warning for Gstreamer includes.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
Frediano Ziglio 2023-05-09 21:55:58 +01:00
parent 6089c90a62
commit 9213308fd3

View File

@ -21,11 +21,19 @@
#include <inttypes.h>
#include <pthread.h>
// ignore static constants variable not used
#if defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-const-variable"
#endif
#include <gst/gst.h>
#include <gst/app/gstappsrc.h>
#include <gst/app/gstappsink.h>
#include <gst/video/video.h>
#include <orc/orcprogram.h>
#if defined(__GNUC__) && (__GNUC__ >= 6)
# pragma GCC diagnostic pop
#endif
#include "red-common.h"
#include "video-encoder.h"