commit | bda78c9464f4d0e6ff26b0035624a967269c3b0a | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@chromium.org> | Tue Apr 10 10:36:59 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 10 11:53:05 2018 |
tree | a1251b5a4350839652142b1e1872fa34faf98597 | |
parent | 6e9d89588dc36c8056bea0049137ca4783de0ec3 [diff] |
Fix cast of const-qualified types in FunctionThatDoesNothingImpl Recent Clang versions fixed a bug which had previously allowed some casts that removed qualifiers to go undiagnosed. This fixes the following kind of error: ./../third_party/webrtc/api/optional.h:41:35: error: reinterpret_cast from 'const int *' to 'void *' casts away qualifiers FunctionThatDoesNothingImpl(reinterpret_cast<void*>(x))); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../../third_party/webrtc/api/optional.h:280:45: note: in instantiation of function template specialization 'rtc::optional_internal::FunctionThatDoesNothing<const int>' requested here return has_value_ ? *optional_internal::FunctionThatDoesNothing(&value_) ^ ../../third_party/webrtc/call/rtp_bitrate_configurator.cc:70:53: note: in instantiation of member function 'rtc::Optional<int>::value_or' requested here std::max(bitrate_config_mask_.min_bitrate_bps.value_or(0), ^ Bug: chromium:831081 Change-Id: I032ebd1f052fa2a50548e984febb7fa462df42ea Reviewed-on: https://webrtc-review.googlesource.com/68941 Commit-Queue: Hans Wennborg <hans@chromium.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22804}
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.