#186: compile warnings with new gcc (master)

Support forum for minisatip
Post Reply
9000h
Posts: 37
Joined: Tue May 12, 2015 1:49 pm

Post by 9000h » Thu Jan 01, 1970 12:00 am

Ubuntu 15.10 wily

gcc --version
gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

```
make
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o minisatip.o minisatip.c
minisatip.c: In function read_rtsp:
minisatip.c:488:22: warning: implicit declaration of function end_of_header [-Wimplicit-function-declaration]
if (s->rlen buf + s->rlen - 4))
^
minisatip.c:534:14: warning: implicit declaration of function find_session_id [-Wimplicit-function-declaration]
s->sid = find_session_id(sess_id);
^
minisatip.c:661:3: warning: implicit declaration of function close_stream [-Wimplicit-function-declaration]
close_stream(s->sid);
^
minisatip.c: In function read_http:
minisatip.c:808:4: warning: implicit declaration of function closefile [-Wimplicit-function-declaration]
closefile(f, nl);
^
minisatip.c: In function main:
minisatip.c:1039:14: warning: implicit declaration of function tcp_listen [-Wimplicit-function-declaration]
if ((rtsp = tcp_listen(NULL, opts.rtsp_port)) adapter, s->sid);
^
stream.c: In function read_dmx:
stream.c:916:2: warning: implicit declaration of function process_stream [-Wimplicit-function-declaration]
process_stream(ad, rlen);
^
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o dvb.o dvb.c
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o adapter.o adapter.c
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o utils.o utils.c
utils.c: In function print_trace:
utils.c:413:9: warning: implicit declaration of function backtrace [-Wimplicit-function-declaration]
size = backtrace(array, 10);
^
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o dvbapi.o dvbapi.c
dvbapi.c: In function update_pid_key:
dvbapi.c:446:3: warning: implicit declaration of function setItemSize [-Wimplicit-function-declaration]
setItemSize(pk_key, 8192 * sizeof(*pid_to_key));
^
dvbapi.c:448:25: warning: implicit declaration of function getItemSize [-Wimplicit-function-declaration]
memset(pid_to_key, 0, getItemSize(pk_key));
^
dvbapi.c: In function dvbapi_pid_add:
dvbapi.c:919:16: warning: implicit declaration of function abs [-Wimplicit-function-declaration]
next_pmt = abs(i);
^
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o tables.o tables.c
tables.c: In function process_pat:
tables.c:136:2: warning: implicit declaration of function setItemSize [-Wimplicit-function-declaration]
setItemSize(pid_key, 8192 * sizeof(*pids));
^
tables.c: In function assemble_packet:
tables.c:200:3: warning: implicit declaration of function setItemTimeout [-Wimplicit-function-declaration]
setItemTimeout(item_key, ASSEMBLE_TIMEOUT);
^
tables.c: In function clean_psi:
tables.c:298:7: warning: implicit declaration of function getItemSize [-Wimplicit-function-declaration]
if (getItemSize(clean_key) < 1500)
^
cc -ggdb -fPIC -DDISABLE_DVBCA -c -o satipc.o satipc.c
cc -ggdb -fPIC -DDISABLE_DVBCA -o minisatip minisatip.o socketworks.o stream.o dvb.o adapter.o utils.o dvbapi.o tables.o satipc.o -lpthread -lrt -ldvbcsa
```

the branch 0.5 is clean

Post Reply