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

Fix build when UNITY_USE_COMMAND_LINE_ARGS is enabled #728

Merged

Conversation

mchernosky
Copy link
Contributor

Turning on UNITY_USE_COMMAND_LINE_ARGS includes some new functions:

  • IsStringInBiggerString
  • UnityStringArgumentMatches

These functions don't have prototypes other than where they are defined. Because -Werror is enabled, this results in -Werror=missing-declarations failing the build.

Because these functions aren't used outside this file, the don't need prototypes and can just be declared static.

All the tests passed for me after this change.

Fixes #727

…ARGS to prevent

-Werror=missing-declarations
@mvandervoord mvandervoord merged commit 25ca536 into ThrowTheSwitch:master Apr 26, 2024
4 checks passed
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.

Build fails with -Werror=missing-declarations when UNITY_USE_COMMAND_LINE_ARGS is enabled
2 participants