mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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:
@@ -582,7 +582,7 @@ bool StreamOutWorkerLogic::write(size_t clientSize, StreamDescriptor::Reply* rep
|
|||||||
const size_t frameSize = mContext->getFrameSize();
|
const size_t frameSize = mContext->getFrameSize();
|
||||||
bool fatal = false;
|
bool fatal = false;
|
||||||
int32_t latency = mContext->getNominalLatencyMs();
|
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;
|
const bool isConnected = mIsConnected;
|
||||||
LOG(VERBOSE) << __func__ << ": reading of " << readByteCount << " bytes from data MQ"
|
LOG(VERBOSE) << __func__ << ": reading of " << readByteCount << " bytes from data MQ"
|
||||||
<< " succeeded; connected? " << isConnected;
|
<< " succeeded; connected? " << isConnected;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ std::optional<bool> isUp(std::string ifname) {
|
|||||||
|
|
||||||
static bool hasIpv4(std::string ifname) {
|
static bool hasIpv4(std::string ifname) {
|
||||||
auto ifr = ifreqs::fromName(ifname);
|
auto ifr = ifreqs::fromName(ifname);
|
||||||
switch (const auto status = ifreqs::trySend(SIOCGIFADDR, ifr)) {
|
switch (ifreqs::trySend(SIOCGIFADDR, ifr)) {
|
||||||
case 0:
|
case 0:
|
||||||
return true;
|
return true;
|
||||||
case EADDRNOTAVAIL:
|
case EADDRNOTAVAIL:
|
||||||
|
|||||||
Reference in New Issue
Block a user