-
-
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
two windows telnet.c compiler warnings #1225
Labels
Comments
👍 |
thanks! |
peterpih
pushed a commit
to railsnewbie257/curl
that referenced
this issue
Jan 24, 2017
Thumbs-up-by: Jay Satiro Closes curl#1225
I should perhaps have made a new PR, but this fits here... Another set of warnings (from clang-cl): telnet.c(1427,21): warning: comparison of constant 268435456 with expression of type 'CURLcode' is always false
[-Wtautological-constant-out-of-range-compare]
if(result == CURL_READFUNC_ABORT) {
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
telnet.c(1433,21): warning: comparison of constant 268435457 with expression of type 'CURLcode' is always false
[-Wtautological-constant-out-of-range-compare]
if(result == CURL_READFUNC_PAUSE)
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
2 warnings generated. That makes sense since |
bagder
added a commit
that referenced
this issue
Mar 31, 2017
telnet.c(1427,21): warning: comparison of constant 268435456 with expression of type 'CURLcode' is always false telnet.c(1433,21): warning: comparison of constant 268435457 with expression of type 'CURLcode' is always false Reported-by: Gisle Vanem Bug: #1225 (comment)
bagder
added a commit
that referenced
this issue
Mar 31, 2017
telnet.c(1427,21): warning: comparison of constant 268435456 with expression of type 'CURLcode' is always false telnet.c(1433,21): warning: comparison of constant 268435457 with expression of type 'CURLcode' is always false Reviewed-by: Jay Satiro Reported-by: Gisle Vanem Bug: #1225 (comment) Closes #1374
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I did this
I looked at this windows build log showing these two compiler warnings
I expected the following
No warnings
curl/libcurl version
7.52.1 and current 7.53.0-dev in git master
operating system
Winsock
Suggested patch
curl-fix-telnet-warnings.patch, also inlined here:
The text was updated successfully, but these errors were encountered: