From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4800 Path: news.gmane.org!not-for-mail From: Abdoulaye Walsimou Gaye Newsgroups: gmane.linux.lib.musl.general Subject: Re: build with clang-3.4 warnings report Date: Sat, 05 Apr 2014 03:06:03 +0200 Message-ID: <533F56FB.8060509@embtoolkit.org> References: <533F0F1A.6040707@embtoolkit.org> <20140404204701.GO26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1396659979 4089 80.91.229.3 (5 Apr 2014 01:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2014 01:06:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4804-gllmg-musl=m.gmane.org@lists.openwall.com Sat Apr 05 03:06:12 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WWF3k-0007Y0-Iw for gllmg-musl@plane.gmane.org; Sat, 05 Apr 2014 03:06:12 +0200 Original-Received: (qmail 30379 invoked by uid 550); 5 Apr 2014 01:06:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30371 invoked from network); 5 Apr 2014 01:06:11 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <20140404204701.GO26358@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4800 Archived-At: 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.