-
Notifications
You must be signed in to change notification settings - Fork 58
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
compiler warnings #38
Comments
Did you update your MSYS installation after #29 ? It seems MSYS/MinGW doesn't know what it wants. |
Ah, I thought these warning were caused by the changes I made then, but that's not true. |
The problem is that fixing this by using the %z modifier for both Linux and Windows breaks cross-compilation for Windows with MinGW on Linux. (I could just cast the size_t values to int and use %d to work around the problem, but there is an annoying inconsistency in MinGW.) |
Adding a compilation flag may have done the trick. At least it works now for MinGW on Linux. |
nope, it's not fixed and now I get additional warnings..... a) benchmark.c:209:35: warning: unknown conversion type character 'z' in format [-Wformat=] b) benchmark.c:209:21: warning: too many arguments for format [-Wformat-extra-args] c) benchmark.c:223:19: warning: ISO C does not support the 'I64' ms_printf length modifier [-Wformat=] |
Do you get those warnings with COMP=mingw or with the (default) COMP=gcc? I suppose you're also getting warnings in at least search,c? |
COMP=gcc (7.3.0) |
OK, please try again with the latest commit. |
works fine, no warnings anymore........but final executable increased size from 196k to 221k |
Yes, because it now links in a standard-compliant version of printf. |
I get a lot of warnings for various files...all same message:
benchmark.c:209:21: warning: ISO C does not support the 'I' ms_printf length modifier [-Wformat=]
and
benchmark.c:223:19: warning: ISO C does not support the 'I64' ms_printf length modifier [-Wformat=]
The text was updated successfully, but these errors were encountered: