[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-notebook.cc: fix for -Wparentheses
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-notebook.cc: fix for -Wparentheses
- Date: Mon, 24 Apr 2017 19:29:12 +0000 (UTC)
commit d5ce5be2be472bcf0d1f1732337d864d75f7a162
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Mon Apr 24 13:21:48 2017 +0900
src/gnome-cmd-notebook.cc: fix for -Wparentheses
src/gnome-cmd-notebook.cc:99:91: error: suggest parentheses around '&&' within '||' [-Werror=parentheses]
gtk_notebook_set_show_tabs (*this, _show_tabs==SHOW_TABS || _show_tabs!=HIDE_TABS && size()>1);
src/gnome-cmd-notebook.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-notebook.cc b/src/gnome-cmd-notebook.cc
index f3686e1..cbbdd5f 100644
--- a/src/gnome-cmd-notebook.cc
+++ b/src/gnome-cmd-notebook.cc
@@ -96,7 +96,7 @@ void GnomeCmdNotebook::show_tabs(TabBarVisibility _show_tabs)
if (_show_tabs!=tabs_visibility)
{
tabs_visibility = _show_tabs;
- gtk_notebook_set_show_tabs (*this, _show_tabs==SHOW_TABS || _show_tabs!=HIDE_TABS && size()>1);
+ gtk_notebook_set_show_tabs (*this, _show_tabs==SHOW_TABS || (_show_tabs!=HIDE_TABS && size()>1));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]