[sr-dev] compiler warning
Daniel-Constantin Mierla
miconda at gmail.com
Tue Oct 2 12:20:42 CEST 2018
On 02.10.18 12:05, Juha Heinanen wrote:
> Got this today with latest master:
>
> CC (gcc) [M sdpops.so] sdpops_mod.o
> sdpops_mod.c: In function 'sdp_get_sess_version':
> sdpops_mod.c:1871:14: warning: unused variable 'sdp' [-Wunused-variable]
> sdp_info_t *sdp = NULL;
> ^~~
>
> It would be nice if people who make commits would try to compile the
> code first.
>
It is a matter of the OS, compiler and version if this kind of warning
is shown with the default flags. For example clang doesn't show it.
Latest versions of gcc do it.
Also, the code is compiled by travis-ci, so if there is a compile error,
there will be an email alert on the sr-dev list.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
More information about the sr-dev
mailing list