commit | 013e83b31c697c861dec83a4fe78b06e836984dd | [log] [tgz] |
---|---|---|
author | Niklas Enbom <niklas.enbom@webrtc.org> | Thu Dec 10 16:16:55 2015 -0800 |
committer | Niklas Enbom <niklas.enbom@webrtc.org> | Fri Dec 11 00:17:03 2015 +0000 |
tree | 663b66f684b7d9997521caef54164c1d8c7b004c | |
parent | cf846ad60adcfe11740d58a097fbdc8e02b2839b [diff] |
Fix -Wformat error in Win-Clang build rtc::PlatformThreadId is pid_t (32-bit signed int) on Linux and Mac, but DWORD (32-bit unsigned int) on Windows. Using the %d printf specifier is therefore not correct on Windows, and Clang would warn about it: ..\..\third_party\webrtc\base\event_tracer.cc(124,46) : error: format specifies type 'int' but the argument has type 'rtc::PlatformThreadId' (aka 'unsigned long') [-Werror,-Wformat] e.phase, e.timestamp, e.pid, e.tid); ^~~~~ This commit fixes the problem by explicitly casting to int before printing. BUG=82385 Review URL: https://codereview.webrtc.org/1514253002 . Cr-Commit-Position: refs/heads/master@{#10982}
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. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.