Fix -Wunused-variable compiler warning am: 810d41a774
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861356 Change-Id: I3383d70ff4387df65a0fdcaf0004061e5ad0c9a0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4eeda91a4a
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