From 02814a43da924eeda13f32bdb19b5e2a5442601a Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 30 Aug 2019 14:15:43 +1000 Subject: [PATCH] decklink: fix macos werror build ../sys/decklink/gstdecklink.cpp:1703:7: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat] persistent_id); ^~~~~~~~~~~~~~ /Library/Frameworks/GStreamer.framework/Versions/1.0/include/gstreamer-1.0/gst/gstinfo.h:1070:87: note: expanded from macro 'GST_DEBUG' #define GST_DEBUG(...) GST_CAT_LEVEL_LOG (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, NULL, __VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /Library/Frameworks/GStreamer.framework/Versions/1.0/include/gstreamer-1.0/gst/gstinfo.h:646:31: note: expanded from macro 'GST_CAT_LEVEL_LOG' (GObject *) (object), __VA_ARGS__); \ ^~~~~~~~~~~ --- sys/decklink/gstdecklink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 220665320e..a9338eb004 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -1700,7 +1700,7 @@ Device * gst_decklink_find_device_by_persistent_id (int64_t persistent_id) { GST_DEBUG ("Searching Device by persistent ID %" G_GINT64_FORMAT, - persistent_id); + (gint64) persistent_id); for (guint index = 0; index < devices->len; index++) { Device *device = (Device *) g_ptr_array_index (devices, index);