mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-11 17:49:38 -06:00
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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user