Unused parameter errors in Yoga.c #650

Closed
opened 2017-10-09 15:33:01 -07:00 by DavidPotter · 0 comments
DavidPotter commented 2017-10-09 15:33:01 -07:00 (Migrated from github.com)

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,
# Report - [x] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate # 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: ```c static int YGDefaultLog(const YGConfigRef __attribute__((unused)) config, const YGNodeRef __attribute__((unused)) node, ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#650
No description provided.