Actions
Bug #15285
closedClang reports warning in civetweb.c
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The following warning sounds suspicious enough to report here
civetweb/src/civetweb.c:3496:27: warning: comparison of function 'SSLv23_client_method' equal to a null pointer is always false
[-Wtautological-pointer-compare]
} else if (use_ssl && SSLv23_client_method NULL) {
^~~~~~~~~~~~~~~~~~ ~~
civetweb/src/civetweb.c:3496:27: note: prefix with the address-of operator to silence this warning
} else if (use_ssl && SSLv23_client_method NULL) {
^
&
civetweb/src/civetweb.c:3496:27: note: suffix with parentheses to turn this into a function call
} else if (use_ssl && SSLv23_client_method == NULL) {
^
Actions