|
Message-ID: <533F56FB.8060509@embtoolkit.org> Date: Sat, 05 Apr 2014 03:06:03 +0200 From: Abdoulaye Walsimou Gaye <awg@...toolkit.org> To: musl@...ts.openwall.com Subject: Re: build with clang-3.4 warnings report OK I was not building with --enable-warnings! Here is another round without bogus warnings you rejected: -Wstring-plus-int -Wtautological-constant-out-of-range-compare Thanks, awg src/aio/aio_readwrite.c:20:16: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] .__si_fields.__sigchld.si_pid = __pthread_self()->pid, ~^~~~~~~~~ src/aio/aio_readwrite.c:18:20: note: previous initialization is here .__si_fields.__rt.si_sigval = sev->sigev_value, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/aio/aio_readwrite.c:8:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy(void) ^ 2 warnings generated. src/aio/lio_listio.c:47:16: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] .__si_fields.__sigchld.si_pid = __pthread_self()->pid, ~^~~~~~~~~ src/aio/lio_listio.c:45:20: note: previous initialization is here .__si_fields.__rt.si_sigval = sev->sigev_value, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. src/env/__init_security.c:8:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy(void *ent) ^ 1 warning generated. src/env/__init_tls.c:46:14: warning: function 'simple' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void *simple(void *p) ^ 1 warning generated. src/env/__libc_start_main.c:9:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy() {} ^ 1 warning generated. In file included from src/errno/strerror.c:7: src/errno/__strerror.h:100:1: warning: implicit conversion from 'int' to 'unsigned char' changes value from 1133 to 109 [-Wconstant-conversion] 1133, ^~~~ 1 warning generated. src/exit/exit.c:7:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy() ^ 1 warning generated. src/exit/quick_exit.c:6:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy() { } ^ src/mman/mmap.c:9:13: warning: function 'dummy1' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy1(int x) { } ^ src/mman/mmap.c:10:13: warning: function 'dummy0' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy0(void) { } ^ 2 warnings generated. src/mman/munmap.c:5:13: warning: function 'dummy1' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy1(int x) { } ^ src/mman/munmap.c:6:13: warning: function 'dummy0' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy0(void) { } ^ 2 warnings generated. src/process/fork.c:7:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy(int x) ^ 1 warning generated. src/regex/regcomp.c:3123:18: warning: explicitly assigning a variable of type 'reg_errcode_t' (aka 'int') to itself [-Wself-assign] do { errcode = errcode; if ( 1) goto error_exit; } while ( 0); ~~~~~~~ ^ ~~~~~~~ src/regex/regcomp.c:3156:15: warning: explicitly assigning a variable of type 'reg_errcode_t' (aka 'int') to itself [-Wself-assign] do { errcode = errcode; if ( 1) goto error_exit; } while ( 0); ~~~~~~~ ^ ~~~~~~~ src/regex/regcomp.c:3181:15: warning: explicitly assigning a variable of type 'reg_errcode_t' (aka 'int') to itself [-Wself-assign] do { errcode = errcode; if ( 1) goto error_exit; } while ( 0); ~~~~~~~ ^ ~~~~~~~ src/regex/regcomp.c:3189:18: warning: explicitly assigning a variable of type 'reg_errcode_t' (aka 'int') to itself [-Wself-assign] do { errcode = errcode; if ( 1) goto error_exit; } while ( 0); ~~~~~~~ ^ ~~~~~~~ src/regex/regcomp.c:3206:18: warning: explicitly assigning a variable of type 'reg_errcode_t' (aka 'int') to itself [-Wself-assign] do { errcode = errcode; if ( 1) goto error_exit; } while ( 0); ~~~~~~~ ^ ~~~~~~~ src/regex/regcomp.c:3235:18: warning: explicitly assigning a variable of type 'reg_errcode_t' (aka 'int') to itself [-Wself-assign] do { errcode = errcode; if ( 1) goto error_exit; } while ( 0); ~~~~~~~ ^ ~~~~~~~ 6 warnings generated. src/signal/sigaction.c:11:18: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static pthread_t dummy(void) { return 0; } ^ 1 warning generated. src/stdio/__stdio_exit.c:3:20: warning: variable 'dummy_file' is not needed and will not be emitted [-Wunneeded-internal-declaration] static FILE *const dummy_file = 0; ^ 1 warning generated. src/stdio/__toread.c:16:18: warning: variable 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const int dummy = 0; ^ 1 warning generated. src/stdio/fflush.c:22:20: warning: variable 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static FILE *const dummy = 0; ^ 1 warning generated. src/thread/cancel_dummy.c:4:13: warning: function 'sccp' is not needed and will not be emitted [-Wunneeded-internal-declaration] static long sccp(syscall_arg_t nr, ^ src/thread/cancel_dummy.c:13:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy() ^ 2 warnings generated. src/thread/cancellation.c:3:13: warning: function 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy(struct __ptcb *cb) ^ 1 warning generated. src/thread/pthread_create.c:7:13: warning: function 'dummy_0' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy_0() ^ src/thread/pthread_create.c:111:21: warning: variable 'dummy' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const size_t dummy = 0; ^ src/thread/pthread_create.c:114:20: warning: variable 'dummy_file' is not needed and will not be emitted [-Wunneeded-internal-declaration] static FILE *const dummy_file = 0; ^ 3 warnings generated. src/time/timer_create.c:17:13: warning: function 'dummy_1' is not needed and will not be emitted [-Wunneeded-internal-declaration] static void dummy_1(pthread_t self) ^ 1 warning generated.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.