-
Notifications
You must be signed in to change notification settings - Fork 293
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
missing prototypes warnings when building on windows using msys2 #168
Comments
@hishamhm Do you prefer a pull request here as well. This bug report is standing for more than a year now. The solution is really simple. Add static to these three functions |
I think it would be good to add to CI first, showing the failures. Here's some prior art; https://github.com/lunarmodules/luasystem/blob/master/.github/workflows/build.yml It uses both MSVC as well as the MinGW/gcc toolchains (for PuC and LuaJIT Lua's respectively) |
Don't really know whether MSVC shows a But looking from a logical perspective. All functions in
Yet, all these three functions are fully local in |
@FractalU yes please, especially since I don't have a way to test on Windows locally.
What the comments there mean is that the only combinations tested are Windows+Lua 5.4+MSVC and Windows+LuaJIT+MinGW/gcc, but then
Yes, it does make sense! |
Alright, made a pull request here as well. |
I've manually built
luafilesystem
on window using msys2, a unix like environment on windows similar to cygwin. Fromgcc
I get the following warnings.I guess all the functions mentioned in the warnings should be declared as static. Below is the proposed change.
In
lfs.c
at line 169Declare all these functions as static.
The text was updated successfully, but these errors were encountered: