Fix -Wunused-variable compiler warning am: 810d41a774
am: 4eeda91a4a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861356 Change-Id: I4071c9db1ab66e2624e09590f03327660bf6959c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
76705af803
2 changed files with 2 additions and 2 deletions
|
@ -582,7 +582,7 @@ bool StreamOutWorkerLogic::write(size_t clientSize, StreamDescriptor::Reply* rep
|
|||
const size_t frameSize = mContext->getFrameSize();
|
||||
bool fatal = false;
|
||||
int32_t latency = mContext->getNominalLatencyMs();
|
||||
if (bool success = readByteCount > 0 ? dataMQ->read(&mDataBuffer[0], readByteCount) : true) {
|
||||
if (readByteCount > 0 ? dataMQ->read(&mDataBuffer[0], readByteCount) : true) {
|
||||
const bool isConnected = mIsConnected;
|
||||
LOG(VERBOSE) << __func__ << ": reading of " << readByteCount << " bytes from data MQ"
|
||||
<< " succeeded; connected? " << isConnected;
|
||||
|
|
|
@ -102,7 +102,7 @@ std::optional<bool> isUp(std::string ifname) {
|
|||
|
||||
static bool hasIpv4(std::string ifname) {
|
||||
auto ifr = ifreqs::fromName(ifname);
|
||||
switch (const auto status = ifreqs::trySend(SIOCGIFADDR, ifr)) {
|
||||
switch (ifreqs::trySend(SIOCGIFADDR, ifr)) {
|
||||
case 0:
|
||||
return true;
|
||||
case EADDRNOTAVAIL:
|
||||
|
|
Loading…
Reference in a new issue