-
Notifications
You must be signed in to change notification settings - Fork 937
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 errors on macOS with Xcode 9.0 beta 5 #503
Comments
I tried to get rid of the same warnings in the unit test yesterday (99a76ac), but it seems to depend on compiler versions. Do you have any idea when this warning disappeared - what version? |
Both on Xcode 8 and Xcode 9 the compilers are saying they are I don't have Xcode 7 at hand, but I guess the warning flags should be there, because that's the version we added those flags. |
The problem is, I don't have any Xcode at hand right now, the tests run either on Travis or are done by contributors. If this was required up to Xcode 7, a possible fix would be to check the clang version - I found here this would be 3.9 for Xcode 8, released September 2016. So the following check could work, but I can't test it #if (__clang_major__ < 3) || ((__clang_major__ < 4) && (__clang_minor__ < 9))
Could you try if this helps? The alternative, to completely drop it might cause warnings on Travis CI - I have to check it there. By the way: It's possible to build without "warnings as errors" even with the current CMakeFile by setting |
I tried to modified those lines to the following:
And now it builds without errors (tested with Xcode 8 and Xcode 9). Thank you for the help! |
It seems this error came with Xcode 7 and is gone again with Xcode 8, so it could be something like
Also Travis CI seems to like it this way. |
True, I tried this and it's also working. |
Ok, so it's fixed. Then let's close this issue. |
…ifiers This closes civetweb#503. Signed-off-by: Aldrin Piri <aldrin@apache.org>
When try to compile a project depends on civetweb with the clang embedded in Xcode 9.0 beta 5 on macOS, there are 2 new compiler errors:
These two errors were appearing as warnings when compiled with previous versions of the Xcode embedded clang.
As we have investigated in Blizzard/s2client-api#49, the errors are caused by two factors:
-pedantic-errors
flag hereMaybe we can remove those two
#pragma
s since those warnings are not there anymore?The text was updated successfully, but these errors were encountered: