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

hb-subset-plan.cc: Fix -Wparentheses warning. #4546

Merged
merged 1 commit into from Jan 7, 2024
Merged

hb-subset-plan.cc: Fix -Wparentheses warning. #4546

merged 1 commit into from Jan 7, 2024

Conversation

sezero
Copy link
Contributor

@sezero sezero commented Jan 7, 2024

In file included from hb-subset-plan.hh:30:0,
                 from hb-subset-plan.cc:27:
hb-subset-plan.cc: In function 'void _update_instance_metrics_map_from_cff2(hb_subset_plan_t*)':
hb-subset-plan.cc:998:81: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (unlikely (!plan->check_success (font = _get_hb_font_with_variations (plan))))
                                                                                 ^
hb.hh:263:25: note: in definition of macro 'unlikely'
 #define unlikely(expr) (expr)
                         ^

Fixes: #4545

In file included from hb-subset-plan.hh:30:0,
                 from hb-subset-plan.cc:27:
hb-subset-plan.cc: In function 'void _update_instance_metrics_map_from_cff2(hb_subset_plan_t*)':
hb-subset-plan.cc:998:81: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (unlikely (!plan->check_success (font = _get_hb_font_with_variations (plan))))
                                                                                 ^
hb.hh:263:25: note: in definition of macro 'unlikely'
 #define unlikely(expr) (expr)
                         ^

Fixes: #4545
@behdad behdad merged commit 1cc7ddb into harfbuzz:main Jan 7, 2024
22 checks passed
@sezero sezero deleted the issue-4545 branch January 7, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

-Wparentheses warning in hb-subset-plan.cc
2 participants