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

Unused parameter errors in Yoga.c #650

Closed
1 task done
DavidPotter opened this issue Oct 9, 2017 · 0 comments
Closed
1 task done

Unused parameter errors in Yoga.c #650

DavidPotter opened this issue Oct 9, 2017 · 0 comments

Comments

@DavidPotter
Copy link

Report

Issues and Steps to Reproduce

Create a React Native application.
Load the project in Xcode
Update your project to recommended settings if Xcode tells you there are updates.
Build

Expected Behavior

No warnings

Actual Behavior

Two unused parameter warnings are displayed on lines 280 and 281 of Yoga.c

This can be solved by adding __attribute__((unused) in front of the parameter names, like so:

static int YGDefaultLog(const YGConfigRef __attribute__((unused)) config,
                        const YGNodeRef __attribute__((unused)) node,
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

No branches or pull requests

1 participant