-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Build warnings with clang 6 #2466
Comments
bagder
added a commit
that referenced
this issue
Apr 7, 2018
unit1309.c:91:24: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension Reported-by: Rikard Falkeborn Fixes #2466
#2468 fixes the reported warnings. However, if I enable gnutls (--with-gnutls) I get the same warning in the last place CURLX_INTEGER_TO_POINTER_CAST is used:
Note that there is not warning from CURLX_POINTER_TO_INTEGER_CAST. |
bagder
added a commit
that referenced
this issue
Apr 7, 2018
unit1309 and vtls/gtls: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension Reported-by: Rikard Falkeborn Fixes #2466
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I did this
Built curl with clang 6.0.0.
I expected the following
Successful build. Instead, I got this:
Looks like this warning has been improved/changed in clang 6. From http://releases.llvm.org/6.0.0/tools/clang/docs/ReleaseNotes.html#improvements-to-clang-s-diagnostics
curl/libcurl version
operating system
Linux (Arch Linux)
The text was updated successfully, but these errors were encountered: