clang build
https://s3.amazonaws.com/archive.travis-ci.org/jobs/129410410/log.txt
```
CC (gcc) [M corex.so] corex_mod.o
corex_mod.c: In function 'w_file_read':
corex_mod.c:352:2: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result [-Wunused-result]
fread(content, fsize, 1, f);
^
CC (gcc) [M corex.so] corex_rpc.o
```
```
CC (clang) [M corex.so] corex_mod.o
corex_mod.c:352:2: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
fread(content, fsize, 1, f);
^~~~~ ~~~~~~~~~~~~~~~~~~~~
1 warning generated.
```
```
CC (clang) [M mediaproxy.so] mediaproxy.o
mediaproxy.c:1929:27: warning: expression which evaluates to zero treated as a null
pointer constant of type 'void *' [-Wnon-literal-null-conversion]
*_params->param = MPInactive;
^~~~~~~~~~
1 warning generated.
```
```
CC (gcc) [L libsrutils.so.1.0] sha256.o
sha256.c: In function 'sr_SHA256_Final':
sha256.c:613:3: warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
*(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] =
context->bitcount;
^
sha256.c: In function 'SHA512_Last':
sha256.c:930:2: warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
*(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH] =
context->bitcount[1];
^
sha256.c:931:2: warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
*(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] =
context->bitcount[0];
^
LD (gcc) [L libsrutils.so.1.0] libsrutils.so.1.0
```
```
CC (gcc) [M sms.so] libsms_modem.o
libsms_modem.c: In function 'put_command':
libsms_modem.c:77:2: warning: ignoring return value of 'write', declared with
attribute warn_unused_result [-Wunused-result]
write(mdm->fd,cmd,cmd_len);
^
CC (gcc) [M sms.so] sms_funcs.o
```
```
CC (clang) [M sms.so] libsms_modem.o
libsms_modem.c:77:2: warning: ignoring return value of function declared with
warn_unused_result attribute [-Wunused-result]
write(mdm->fd,cmd,cmd_len);
^~~~~ ~~~~~~~~~~~~~~~~~~~
1 warning generated.
```
```
CC (gcc) [M dmq_usrloc.so] usrloc_sync.o
usrloc_sync.c: In function 'usrloc_dmq_handle_msg':
usrloc_sync.c:403:12: warning: 'reg_id' may be used uninitialized in this function
[-Wmaybe-uninitialized]
ci.reg_id = reg_id;
^
usrloc_sync.c:401:13: warning: 'methods' may be used uninitialized in this
function [-Wmaybe-uninitialized]
ci.methods = methods;
^
usrloc_sync.c:405:19: warning: 'last_modified' may be used uninitialized in this
function [-Wmaybe-uninitialized]
ci.last_modified = last_modified;
^
usrloc_sync.c:394:7: warning: 'q' may be used uninitialized in this function
[-Wmaybe-uninitialized]
ci.q = q;
^
usrloc_sync.c:399:12: warning: 'cflags' may be used uninitialized in this function
[-Wmaybe-uninitialized]
ci.cflags = cflags;
^
usrloc_sync.c:397:11: warning: 'flags' may be used uninitialized in this function
[-Wmaybe-uninitialized]
ci.flags = flags;
^
usrloc_sync.c:396:10: warning: 'cseq' may be used uninitialized in this function
[-Wmaybe-uninitialized]
ci.cseq = cseq;
^
usrloc_sync.c:393:13: warning: 'expires' may be used uninitialized in this
function [-Wmaybe-uninitialized]
ci.expires = expires;
^
usrloc_sync.c:407:2: warning: 'action' may be used uninitialized in this function
[-Wmaybe-uninitialized]
switch(action) {
^
make[3]: 'libsrutils.so.1.0' is up to date.
```
```
CC (gcc) [M dispatcher.so] dispatch.o
dispatch.c: In function 'ds_set_attrs':
dispatch.c:263:8: warning: 'tmp_rweight' may be used uninitialized in this
function [-Wmaybe-uninitialized]
int tmp_rweight;
^
make[3]: 'libkmi.so.1.0' is up to date.
```
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/612