Project

General

Profile

Actions

Bug #15285

closed

Clang reports warning in civetweb.c

Added by Willem Jan Withagen about 8 years ago. Updated almost 7 years ago.

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 #1

Updated by Greg Farnum about 7 years ago

  • Project changed from Ceph to rgw
Actions #2

Updated by Yehuda Sadeh almost 7 years ago

is that still happening?

Actions #3

Updated by Yehuda Sadeh almost 7 years ago

  • Status changed from New to Closed

closing for now, feel free to reopen if the issue still exists.

Actions

Also available in: Atom PDF