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

Declare three windows specific functions as static #175

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

FractalU
Copy link
Contributor

fixes #168

Declaring these three functions as static ensures that every function which is fully local to lfs.c and doesn't have a prototype in lfs.h is being declared as static. This way, it's sure that there aren't any compiler warnings about missing prototypes, even if the OS is Windows and the compiler is MSVC, gcc or clang.

@hishamhm
Copy link
Member

@FractalU I've added Windows runs to the CI, can you rebase this PR? Thank you!

@FractalU
Copy link
Contributor Author

@hishamhm Rebased this PR.

@hishamhm
Copy link
Member

LGTM! Thank you!

@hishamhm hishamhm merged commit 0951178 into lunarmodules:master Oct 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

missing prototypes warnings when building on windows using msys2
2 participants