Hello folks,
I’m working on a project that uses clang and it seems that I cannot compile the CSCommon.h header inside the Apple SDKs. The error I get is:
Hello folks,
I’m working on a project that uses clang and it seems that I cannot compile the CSCommon.h header inside the Apple SDKs. The error I get is:
(Resync with mailing list)
Thanks!
It comes through as an error rather than a warning though, so we can’t simply ignore / disable it.
It’s a warning that’s set to be treated as an error by default (as –Werror=c++11-narrowing).
On Linux I can use –Wno-c++11-narrowing and it gets rid of the error. If you want it to be a warning instead of an error you can say –Wno-error=c++11-narrowing instead.
–paulr
Thanks! Does this still apply if I’m just using the clang API? I don’t currently pass any CLI-esk string arguments to clang anywhere (that I know of).
Sorry, I have no idea how that works. There ought to be some way to control the diagnostics, I just don’t know how.
–paulr