Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Wparentheses warning in node-editor.cpp #34

Closed
quesnel opened this issue Apr 15, 2021 · 0 comments
Closed

-Wparentheses warning in node-editor.cpp #34

quesnel opened this issue Apr 15, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@quesnel
Copy link
Member

quesnel commented Apr 15, 2021

irritator/app/gui/node-editor.cpp:790:30: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first
+[-Wparentheses]
      line + (remaining > 0) ? settings.automatic_layout_y_distance : 0.f;
      ~~~~~~~~~~~~~~~~~~~~~~ ^
irritator/app/gui/node-editor.cpp:790:30: note: place parentheses around the '+' expression to silence this warning
      line + (remaining > 0) ? settings.automatic_layout_y_distance : 0.f;
                             ^
      (                     )
irritator/app/gui/node-editor.cpp:790:30: note: place parentheses around the '?:' expression to evaluate it first
      line + (remaining > 0) ? settings.automatic_layout_y_distance : 0.f;
@quesnel quesnel added the good first issue Good for newcomers label Apr 15, 2021
@quesnel quesnel closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant