From 7b10f9448bb9965e94f9a37a59f0999e9c51e68f Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Fri, 24 Apr 2015 18:37:48 +0200 Subject: [PATCH] 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. --- src/gmenu2x.cpp | 1 + src/linkapp.cpp | 1 + src/selector.cpp | 1 + src/textdialog.cpp | 1 + src/textmanualdialog.cpp | 1 + 5 files changed, 5 insertions(+) diff --git a/src/gmenu2x.cpp b/src/gmenu2x.cpp index ce620ad..8e710d3 100644 --- a/src/gmenu2x.cpp +++ b/src/gmenu2x.cpp @@ -356,6 +356,7 @@ void GMenu2X::initBG() { serviceX -= 19; } } + (void)serviceX; bgmain->convertToDisplayFormat(); } diff --git a/src/linkapp.cpp b/src/linkapp.cpp index 62145b3..1cbc516 100644 --- a/src/linkapp.cpp +++ b/src/linkapp.cpp @@ -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; diff --git a/src/selector.cpp b/src/selector.cpp index edf8f48..8f92dba 100644 --- a/src/selector.cpp +++ b/src/selector.cpp @@ -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(); diff --git a/src/textdialog.cpp b/src/textdialog.cpp index 3d0aae0..c96d95c 100644 --- a/src/textdialog.cpp +++ b/src/textdialog.cpp @@ -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(); diff --git a/src/textmanualdialog.cpp b/src/textmanualdialog.cpp index c1f1553..222deb7 100644 --- a/src/textmanualdialog.cpp +++ b/src/textmanualdialog.cpp @@ -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();