]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/decklink_common.cpp
lavfi/misc_vaapi: use default value setting if without arguments.
[ffmpeg] / libavdevice / decklink_common.cpp
index 6ef2c529f446ec5defeff1fdc346c4140e0e7dc0..d1576b85535dc4c98c4ea8dcecefbe4d356a560b 100644 (file)
@@ -29,7 +29,18 @@ extern "C" {
 #ifdef _WIN32
 #include <DeckLinkAPI_i.c>
 #else
+/* The file provided by the SDK is known to be missing prototypes, which doesn't
+   cause issues with GCC since the warning doesn't apply to C++ files.  However
+   Clang does complain (and warnings are treated as errors), so suppress the
+   warning just for this one file */
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmissing-prototypes"
+#endif
 #include <DeckLinkAPIDispatch.cpp>
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
 #endif
 
 extern "C" {