Fix -Wunused-but-set-variable in sdk/objc.
Bug: None Change-Id: I7576db57b0a8d86fe7281176956c2efef78c1252 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236540 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35273}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
e5e78c4521
commit
32c4ecb3db
@ -25,6 +25,7 @@
|
||||
#import "base/RTCVideoDecoderFactory.h"
|
||||
#import "base/RTCVideoEncoderFactory.h"
|
||||
#import "helpers/NSString+StdString.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "sdk/objc/native/api/network_monitor_factory.h"
|
||||
#include "system_wrappers/include/field_trial.h"
|
||||
|
||||
@ -118,17 +119,17 @@
|
||||
_networkThread = rtc::Thread::CreateWithSocketServer();
|
||||
_networkThread->SetName("network_thread", _networkThread.get());
|
||||
BOOL result = _networkThread->Start();
|
||||
NSAssert(result, @"Failed to start network thread.");
|
||||
RTC_DCHECK(result) << "Failed to start network thread.";
|
||||
|
||||
_workerThread = rtc::Thread::Create();
|
||||
_workerThread->SetName("worker_thread", _workerThread.get());
|
||||
result = _workerThread->Start();
|
||||
NSAssert(result, @"Failed to start worker thread.");
|
||||
RTC_DCHECK(result) << "Failed to start worker thread.";
|
||||
|
||||
_signalingThread = rtc::Thread::Create();
|
||||
_signalingThread->SetName("signaling_thread", _signalingThread.get());
|
||||
result = _signalingThread->Start();
|
||||
NSAssert(result, @"Failed to start signaling thread.");
|
||||
RTC_DCHECK(result) << "Failed to start signaling thread.";
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@ -128,7 +128,6 @@
|
||||
RTC_OBJC_TYPE(RTCPeerConnectionFactory) *factory =
|
||||
[[RTC_OBJC_TYPE(RTCPeerConnectionFactory) alloc] init];
|
||||
|
||||
RTC_OBJC_TYPE(RTCConfiguration) * newConfig;
|
||||
std::unique_ptr<webrtc::PeerConnectionDependencies> pc_dependencies =
|
||||
std::make_unique<webrtc::PeerConnectionDependencies>(nullptr);
|
||||
@autoreleasepool {
|
||||
@ -137,7 +136,7 @@
|
||||
constraints:contraints
|
||||
dependencies:std::move(pc_dependencies)
|
||||
delegate:nil];
|
||||
newConfig = peerConnection.configuration;
|
||||
ASSERT_NE(peerConnection, nil);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user