-
Notifications
You must be signed in to change notification settings - Fork 67
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
#if when #ifdef should be used - inconsistent with AWS SDK C++ #330
Comments
Thanks for pointing this out. Looking into making these changes |
All of the changes have been merged. Please allow for a few days before all of the dependencies are updated. Or you can manually update them yourself if you would like to test the changes now. |
aws-crt-cpp v0.19.8 contains all fixes |
@graebm Unfortunately the same happens with a few other symbols and which makes it incredibly easy to miss the actual important warnings because the build output is quite bloated with these warnings. Could you please address the following symbols as well, please?
P.S. I would do it myself but looks more involved than what I would expect for |
what compiler version, and what warning level are you setting? Are you setting this warning level on your application? (valid) Or are you setting it globally via CFLAGS and CXXFLAGS environment variables before compiling aws-crt-cpp? (workaround: don't do that) |
Ah, you're using MSVC |
The warning level is set on the application level - through cmake. The code is built with GCC (11.1.0, 12.1.0), clang (14.0.5, 15.0.6) and MSVC (19.32) and described issues persist on all of those compilers. |
This was fixed with the above pr. Please let us know if you notice any other inconsistencies with these repo's |
The include headers contain a mix of
#if _MSC_VER
and#ifdef _MSC_VER
. When compiled with strict warning-as-error settings, this produces the error'_MSC_VER' is not defined, evaluates to 0
. The problem cannot be solved by defining_MSC_VER=0
in the build system, because this would cause the#ifdef
statements to produce false-positives. The#if
s should be replaced with#ifdef
s. This occurs with at least one other symbol in addition to_MSC_VER
.The text was updated successfully, but these errors were encountered: