We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Run cmake with:
cmake -DCMAKE_C_FLAGS="-DUNITY_USE_COMMAND_LINE_ARGS" -B build -S .
Then build with cmake --build build, and get these errors:
cmake --build build
Unity/src/unity.c:2354:5: error: no previous declaration for ‘IsStringInBiggerString’ [-Werror=missing-declarations] 2354 | int IsStringInBiggerString(const char* longstring, const char* shortstring) | ^~~~~~~~~~~~~~~~~~~~~~ Unity/src/unity.c:2399:5: error: no previous declaration for ‘UnityStringArgumentMatches’ [-Werror=missing-declarations] 2399 | int UnityStringArgumentMatches(const char* str) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors gmake[2]: *** [CMakeFiles/unity.dir/build.make:76: CMakeFiles/unity.dir/src/unity.c.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/unity.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2
The complier is: GNU 11.4.0
The text was updated successfully, but these errors were encountered:
I have in incoming PR to fix this by marking these functions as static.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Run cmake with:
Then build with
cmake --build build
, and get these errors:The complier is: GNU 11.4.0
The text was updated successfully, but these errors were encountered: