Compiler warned about potential misuse of = operator in
src/client-async/logic/Logic.cpp file. It was intentional.
Additional brackets are used to supress compiler warning.
Compiler warned about unused returned value of flock() function
in src/common/lock/FileLock.cpp file. (void) casting is used
to stress that returned value should be ignored.
Change-Id: Ia986b5f66c58a7366eaca562a6325c1fc99ac033
CheckResponsePtr checkResponse;
CancelResponsePtr cancelResponse;
SimpleCheckResponsePtr simpleResponse;
- while (response = m_socketClient.getResponse()) {
+ while ((response = m_socketClient.getResponse())) {
checkResponse = std::dynamic_pointer_cast<CheckResponse>(response);
if (checkResponse) {
processCheckResponse(*checkResponse);
void FileLock::unlock(void) {
LOGI("Releasing file lock");
- TEMP_FAILURE_RETRY(::flock(m_lockable.m_fd, LOCK_UN));
+ (void) TEMP_FAILURE_RETRY(::flock(m_lockable.m_fd, LOCK_UN));
}
} /* namespace Cynara */