soup: Fix static build with MSVC
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 3 Mar 2022 17:34:36 +0000 (23:04 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 3 Mar 2022 17:37:35 +0000 (23:07 +0530)
../ext/soup/gstsouploader.c(818): error C4098: '_soup_session_send_async': 'void' function returning a value

It's technically a false warning, but that's how MSVC works, so fix
it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1805>

subprojects/gst-plugins-good/ext/soup/gstsouploader.c

index 8f6ae9d..6ea660f 100644 (file)
@@ -814,11 +814,10 @@ _soup_session_send_async (SoupSession * session, SoupMessage * msg,
 {
 #ifdef STATIC_SOUP
 #if STATIC_SOUP == 2
-  return soup_session_send_async (session, msg, cancellable,
-      callback, user_data);
+  soup_session_send_async (session, msg, cancellable, callback, user_data);
 #else
-  return soup_session_send_async (session, msg, G_PRIORITY_DEFAULT,
-      cancellable, callback, user_data);
+  soup_session_send_async (session, msg, G_PRIORITY_DEFAULT, cancellable,
+      callback, user_data);
 #endif
 #else
   if (gst_soup_vtable.lib_version == 3) {