diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-07-22 19:10:15 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-07-25 12:29:22 +0300 |
commit | e32626017356a936b2d11d3797216e61a5498090 (patch) | |
tree | 87f9bbc2e9256a3d2cc74176957e2e345a79ec38 /sys/decklink | |
parent | b4b911da4d97ad3467380c9721b7130a1ded0aa9 (diff) | |
download | gstreamer-plugins-bad-e32626017356a936b2d11d3797216e61a5498090.tar.gz |
decklink: Make sure to return a value from all code paths
False warning from MSVC, or it does not understand that
g_assert_not_reached() does not return.
...\gst-plugins-bad-1.0-1.17.0.1\sys\decklink\gstdecklink.cpp(1647) : warning C4715: 'gst_decklink_configure_duplex_mode': not all control paths return a value
Diffstat (limited to 'sys/decklink')
-rw-r--r-- | sys/decklink/gstdecklink.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 7ede6aa96..220665320 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -1644,6 +1644,9 @@ gst_decklink_configure_duplex_mode (Device * device, BMDDuplexMode duplex_mode) return DUPLEX_MODE_SET_FAILURE; } } + + g_assert_not_reached (); + return DUPLEX_MODE_SET_FAILURE; } DuplexModeSetOperationResult |