Opened 7 years ago
Closed 7 years ago
#4554 closed defect (fixed)
Warnings: oscam-ecm.c
Reported by: | pr2 | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | General |
Severity: | low | Keywords: | oscam-ecm.c |
Cc: | Sensitive: | no |
Description
Revision
11314 (and previous)
Issue Description
Warning when compiling on MacOS native
When the issue occurs
Compile on MacOS native
How the issue is reproducable
Compile on MacOS native
CC oscam-ecm.c
oscam-ecm.c:541:25: warning: address of array 'cl->account->usr' will always
evaluate to 'true' [-Wpointer-bool-conversion]
if(cl && !cl->account->usr) { return; } not for anonymous users!
.................................................*......
oscam-ecm.c:1691:39: warning: address of array 'ea->cw' will always evaluate to
'true' [-Wpointer-bool-conversion]
if(ea && ea->rc < E_NOTFOUND && ea->cw)
...........................................................................*......
2 warnings generated.
Attachments (1)
Change History (4)
comment:1 by , 7 years ago
by , 7 years ago
Attachment: | oscam-ecm.patch added |
---|
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
try if(cl && !(cl->account->usr)) { return; }