1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-12-25 07:29:55 +02:00

Suppress Clang analyzer warnings about dead assignments

The last assignment in the series is indeed dead, but for consistency
I want to keep it around.
This commit is contained in:
Maarten ter Huurne 2015-04-24 18:37:48 +02:00
parent cb1b26e5e6
commit 7b10f9448b
5 changed files with 5 additions and 0 deletions

View File

@ -356,6 +356,7 @@ void GMenu2X::initBG() {
serviceX -= 19;
}
}
(void)serviceX;
bgmain->convertToDisplayFormat();
}

View File

@ -496,6 +496,7 @@ void LinkApp::showManual() {
x = gmenu2x.drawButton(s, "right", gmenu2x.tr["Change page"], x);
x = gmenu2x.drawButton(s, "cancel", "", x);
x = gmenu2x.drawButton(s, "start", gmenu2x.tr["Exit"], x);
(void)x;
ss.clear();
ss << page+1;

View File

@ -74,6 +74,7 @@ int Selector::exec(int startSelection) {
x = gmenu2x.drawButton(bg, "cancel", "", x);
}
x = gmenu2x.drawButton(bg, "start", gmenu2x.tr["Exit"], x);
(void)x;
unsigned int top, height;
tie(top, height) = gmenu2x.getContentArea();

View File

@ -75,6 +75,7 @@ void TextDialog::exec() {
x = gmenu2x.drawButton(bg, "down", gmenu2x.tr["Scroll"], x);
x = gmenu2x.drawButton(bg, "cancel", "", x);
x = gmenu2x.drawButton(bg, "start", gmenu2x.tr["Exit"], x);
(void)x;
bg.convertToDisplayFormat();

View File

@ -86,6 +86,7 @@ void TextManualDialog::exec() {
x = gmenu2x.drawButton(bg, "right", gmenu2x.tr["Change page"], x);
x = gmenu2x.drawButton(bg, "cancel", "", x);
x = gmenu2x.drawButton(bg, "start", gmenu2x.tr["Exit"], x);
(void)x;
bg.convertToDisplayFormat();