mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
To: musl@lists.openwall.com
Subject: Re: build with clang-3.4 warnings report
Date: Sat, 05 Apr 2014 03:06:03 +0200	[thread overview]
Message-ID: <533F56FB.8060509@embtoolkit.org> (raw)
In-Reply-To: <20140404204701.GO26358@brightrain.aerifal.cx>

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.



  reply	other threads:[~2014-04-05  1:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04 19:59 Abdoulaye Walsimou Gaye
2014-04-04 20:47 ` Rich Felker
2014-04-05  1:06   ` Abdoulaye Walsimou Gaye [this message]
2014-04-05  1:54     ` Rich Felker
2014-04-05  9:04       ` Jens Gustedt
2014-04-05  9:31         ` Szabolcs Nagy
2014-04-05 13:07         ` Rich Felker
2014-04-05 14:37           ` Jens Gustedt
2014-04-05 16:35             ` Rich Felker
2014-04-05 22:08               ` Jens Gustedt
2014-04-06  1:57                 ` Rich Felker
2014-04-06 16:37                   ` Jens Gustedt
2014-04-06 16:49                     ` Rich Felker
2014-04-07 11:17       ` Oliver Schneider
2014-04-07 17:23         ` Rich Felker
2014-04-07 19:40           ` Abdoulaye Walsimou Gaye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=533F56FB.8060509@embtoolkit.org \
    --to=awg@embtoolkit.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).