diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-02-05 23:53:17 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-02-06 00:10:28 +0530 |
commit | fffb2aa12f1c9844a60bd58d43407f8ccfc2dbb0 (patch) | |
tree | 983c23c2af7561b3c038860d8b803acecb7212e4 /sys/winks | |
parent | 6c953438f5ad9ab78114bf3d9e5a6e9b1d913b80 (diff) | |
download | gstreamer-plugins-bad-fffb2aa12f1c9844a60bd58d43407f8ccfc2dbb0.tar.gz |
misc: Fix warnings on Cerbero MinGW
gstladspa.c:360:5: error: zero-length ms_printf format string [-Werror=format-zero-length]
vad_private.c:108:3: error: this decimal constant is unsigned only in ISO C90 [-Werror]
gstdecklinkvideosink.cpp:478:32: error: comparison between 'BMDTimecodeFormat {aka enum _BMDTimecodeFormat}' and 'enum GstDecklinkTimecodeFormat' [-Werror=enum-compare]
win/DeckLinkAPI_i.c:72:8: error: extra tokens at end of #endif directive [-Werror]
win/DeckLinkAPIDispatch.cpp:35:10: error: unused variable 'res' [-Werror=unused-variable]
gstwasapiutil.c:733:3: error: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'DWORD' [-Werror=format]
gstwasapiutil.c:733:3: error: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'guint64' [-Werror=format]
kshelpers.c:446:3: error: missing braces around initializer [-Werror=missing-braces]
kshelpers.c:446:3: error: (near initialization for 'known_property_sets[0].guid.Data4') [-Werror=missing-braces]
Diffstat (limited to 'sys/winks')
-rw-r--r-- | sys/winks/kshelpers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/winks/kshelpers.c b/sys/winks/kshelpers.c index 2ffb7547c..80bb4775b 100644 --- a/sys/winks/kshelpers.c +++ b/sys/winks/kshelpers.c @@ -442,6 +442,12 @@ typedef struct 0x9B496CE1, 0x811B, 0x11cf, { 0x8C, 0x77, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 } #endif +/* GCC warns about this, but it seems to be correct and MSVC doesn't warn about + * it. XXX: Check again after the toolchain is updated: + * https://gitlab.freedesktop.org/gstreamer/cerbero/merge_requests/69 */ +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wmissing-braces" +#endif static const KsPropertySetMapping known_property_sets[] = { {{STATIC_KSPROPSETID_General}, "General"}, {{STATIC_KSPROPSETID_MediaSeeking}, "MediaSeeking"}, |