summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-15 13:46:50 (GMT)
committerBrad King <brad.king@kitware.com>2011-02-15 13:46:50 (GMT)
commitacd8161bad5d2106f176cd464819df5fbedf2ec7 (patch)
treeb1768d80f0c6ee56462f1de10e9c73e46b966421 /Source/CursesDialog
parentd4884710a4db8a24e08b47617c912ba83deb1e39 (diff)
downloadCMake-acd8161bad5d2106f176cd464819df5fbedf2ec7.zip
CMake-acd8161bad5d2106f176cd464819df5fbedf2ec7.tar.gz
CMake-acd8161bad5d2106f176cd464819df5fbedf2ec7.tar.bz2
ccmake: Remove extra parens around comparison
The Clang compiler warns about extra parenthesis in the code if ((form->curpage == field->page)) ~ ^ ~ because the idiom is commonly used when an assignment is intended instead of a comparison. Remove the extra enclosing layer.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/form/frm_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/form/frm_driver.c b/Source/CursesDialog/form/frm_driver.c
index 03896c2..f234722 100644
--- a/Source/CursesDialog/form/frm_driver.c
+++ b/Source/CursesDialog/form/frm_driver.c
@@ -1086,7 +1086,7 @@ _nc_Synchronize_Options(FIELD *field, Field_Options newopts)
if (form->status & _POSTED)
{
- if ((form->curpage == field->page))
+ if (form->curpage == field->page)
{
if (changed_opts & O_VISIBLE)
{