From: "Lubomir I. Ivanov" <[email protected]>

"warning: suggest parentheses around assignment used
as truth value [-Wparentheses]"

I think 4.8.2 is confused about this one, but we suppress
it regardless by separating into two assignments.

Signed-off-by: Lubomir I. Ivanov <[email protected]>
---
 qt-ui/mainwindow.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 8f9478a..d758515 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1246,7 +1246,8 @@ void MainWindow::on_profNdl_tts_clicked(bool triggered)
 }
 void MainWindow::turnOffNdlTts()
 {
-       const bool triggered = prefs.calcndltts = false;
+       const bool triggered = false;
+       prefs.calcndltts = triggered;
        TOOLBOX_PREF_PROFILE(calcndltts);
 }
 
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to