Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sendKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void sendPowerEvent(int32_t ctrl)
exit(0);

buf.bCtrl = static_cast<uint32_t>(ctrl);
msgsnd(mqId, &buf, sizeof(buf) - sizeof(long), 0);
(void)msgsnd(mqId, &buf, sizeof(buf) - sizeof(long), 0);
}

static void sendVolumeEvent(int32_t ctrl)
Expand All @@ -77,11 +77,11 @@ static void sendVolumeEvent(int32_t ctrl)
switch (ctrl) {
case UP:
buf.bCtrl = UP;
msgsnd(mqId, &buf, sizeof(buf) - sizeof(long), 0);
(void)msgsnd(mqId, &buf, sizeof(buf) - sizeof(long), 0);
break;
case DOWN:
buf.bCtrl = DOWN;
msgsnd(mqId, &buf, sizeof(buf) - sizeof(long), 0);
(void)msgsnd(mqId, &buf, sizeof(buf) - sizeof(long), 0);
break;
default:
cout << "Invalid Volume control option" << endl;
Expand Down
2 changes: 1 addition & 1 deletion vInputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void sendKeyThread(vInputDevice *vDev)
}

while (true) {
msgrcv(mqId, &data, sizeof(struct mQData) - sizeof(long), 1, 0);
(void)msgrcv(mqId, &data, sizeof(struct mQData) - sizeof(long), 1, 0);
if (vD->type == VOLUME) {
switch (data.bCtrl) {
case UP:
Expand Down