gstreamer: Disable C5287 warning on MSVC

```
../subprojects/gstreamer/gst/gstpad.c(3866): warning C5287:
operands are different enum types 'GstQueryType' and 'GstQueryTypeFlags';
use an explicit cast to silence this warning
```

We abuse these enums, and MSVC emits a warning for this specific case:

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warnings-c5200-through-c5399

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9431>
This commit is contained in:
Nirbheek Chauhan 2025-07-13 17:30:20 +01:00 committed by GStreamer Marge Bot
parent 7456266117
commit ba73cfd36e
3 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,10 @@
#ifndef __GST_EVENT_H__
#define __GST_EVENT_H__
#ifdef _MSC_VER
#pragma warning(disable: 5287)
#endif
typedef struct _GstEvent GstEvent;
/**

View File

@ -32,6 +32,10 @@
G_BEGIN_DECLS
#ifdef _MSC_VER
#pragma warning(disable: 5287)
#endif
typedef struct _GstQuery GstQuery;
#include <gst/gstminiobject.h>

View File

@ -27,6 +27,10 @@
G_BEGIN_DECLS
#ifdef _MSC_VER
#pragma warning(disable: 5287)
#endif
#define GST_TYPE_SEGMENT (gst_segment_get_type())
typedef struct _GstSegment GstSegment;