Opened 10 years ago
Closed 10 years ago
#3553 closed defect (worksforme)
module-dvbapi.c: warning: comparison between signed and unsigned integer
Reported by: | Philipp | Owned by: | |
---|---|---|---|
Priority: | trivial | Component: | ! Please select... |
Severity: | low | Keywords: | |
Cc: | Sensitive: | no |
Description
Revision
9131
Issue Description
abs is "int"
module-dvbapi.c: In function 'dvbapi_start_emm_filter': module-dvbapi.c:896:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(fcount == abs(demux[demux_index].emm_filter)) { return 0; } ^
When the issue occurs
newer compiler with EXTRA_CC_OPTS="-O0"
How the issue is reproducable
<Please fill in>
<Don't forget to ATTACH (NOT post here as text) a log file of oscam in debug mode (start oscam with -d255) and to remove the brackets around the fields! Otherwise, your ticket will be closed as you seem to be unable to read.>
Note:
See TracTickets
for help on using tickets.
abs can't return negative even if it is int abs(). Fixing this warning is waste of time.