From fd7df98826e252a68dd27854eb5ac4d0ed8517c6 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Thu, 21 Dec 2017 16:25:19 +0100 Subject: [PATCH] Fix sign-compare warnings on win_clang that appear after clang roll at https://webrtc-review.googlesource.com/35741 Bug: None Change-Id: I31193491f167e21277b9266b4331ea9212fddcbe Reviewed-on: https://webrtc-review.googlesource.com/35783 Reviewed-by: Henrik Andreassson Commit-Queue: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#21421} --- modules/audio_coding/acm2/acm_receive_test.h | 3 ++- p2p/base/portallocator.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/audio_coding/acm2/acm_receive_test.h b/modules/audio_coding/acm2/acm_receive_test.h index 657a12467a..c7e7da6e36 100644 --- a/modules/audio_coding/acm2/acm_receive_test.h +++ b/modules/audio_coding/acm2/acm_receive_test.h @@ -11,6 +11,7 @@ #ifndef MODULES_AUDIO_CODING_ACM2_ACM_RECEIVE_TEST_H_ #define MODULES_AUDIO_CODING_ACM2_ACM_RECEIVE_TEST_H_ +#include // for size_t #include #include @@ -30,7 +31,7 @@ class PacketSource; class AcmReceiveTestOldApi { public: - enum NumOutputChannels { + enum NumOutputChannels : size_t { kArbitraryChannels = 0, kMonoOutput = 1, kStereoOutput = 2 diff --git a/p2p/base/portallocator.h b/p2p/base/portallocator.h index 25a6d48fa5..f8e813f502 100644 --- a/p2p/base/portallocator.h +++ b/p2p/base/portallocator.h @@ -111,7 +111,7 @@ const uint32_t kMinimumStepDelay = 50; constexpr int kDefaultMaxIPv6Networks = 5; // CF = CANDIDATE FILTER -enum { +enum : uint32_t { CF_NONE = 0x0, CF_HOST = 0x1, CF_REFLEXIVE = 0x2,