commit | a6d7b028242c38447d8dd13fe232682aceb10932 | [log] [tgz] |
---|---|---|
author | Tom Anderson <thomasanderson@chromium.org> | Mon Oct 14 16:00:54 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 17 09:23:49 2019 |
tree | 8777bfb6df7706951f14f793ba4b340737eef425 | |
parent | 04671b0543c927739be56d4362f7284547993ee2 [diff] |
Avoid g_clear_object in pipewire Fixes the below build warnings when building with a newer version of glib. Seen when updating the linux sysroots for crbug.com/1012850 [ 11629/38237 - 588 process @ 649.7/s : 17.899s ] CXX obj/third_party/webrtc/modules/desktop_capture/desktop_capture_generic/base_capturer_pipewire.o ../../third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc:253:5: warning: Not available before 2.34 [-W#pragma-messages] g_clear_object(&cancellable_); ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/gobject/gobject.h:678:36: note: expanded from macro 'g_clear_object' ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gmem.h:142:3: note: expanded from macro 'g_clear_pointer' GLIB_AVAILABLE_MACRO_IN_2_34 ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gversionmacros.h:473:49: note: expanded from macro 'GLIB_AVAILABLE_MACRO_IN_2_34' ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gmacros.h:991:41: note: expanded from macro 'GLIB_UNAVAILABLE_MACRO' ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gmacros.h:988:33: note: expanded from macro '_GLIB_GNUC_DO_PRAGMA' ^ <scratch space>:249:6: note: expanded from here GCC warning "Not available before " "2" "." "34" ^ ../../third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc:257:5: warning: Not available before 2.34 [-W#pragma-messages] g_clear_object(&proxy_); ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/gobject/gobject.h:678:36: note: expanded from macro 'g_clear_object' ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gmem.h:142:3: note: expanded from macro 'g_clear_pointer' GLIB_AVAILABLE_MACRO_IN_2_34 ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gversionmacros.h:473:49: note: expanded from macro 'GLIB_AVAILABLE_MACRO_IN_2_34' ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gmacros.h:991:41: note: expanded from macro 'GLIB_UNAVAILABLE_MACRO' ^ ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0/glib/gmacros.h:988:33: note: expanded from macro '_GLIB_GNUC_DO_PRAGMA' ^ <scratch space>:254:6: note: expanded from here GCC warning "Not available before " "2" "." "34" ^ 2 warnings generated. BUG=chromium:1012850, chromium:1014947 R=tommi@webrtc.org Change-Id: I0f72e1cd6e9b9311cf2cbd5635e7ad8fe489c350 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/156980 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29506}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.