[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    warnings with latest master
From:       Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date:       2018-09-10 18:08:55
Message-ID: nycvar.QRO.7.76.1809102004300.22292 () enwn ! fr ! nkvf ! pbz
[Download RAW message or body]

This is with:

$ gcc --version
gcc (Debian 8.2.0-6) 8.2.0


shell/ash.c: In function 'wait_block_or_sig':
shell/ash.c:4216:35: warning: passing argument 3 to restrict-qualified 
parameter aliases with argument 2 [-Wrestrict]
   sigprocmask(SIG_SETMASK, &mask, &mask);

shell/hush.c: In function 'wait_for_child_or_signal':
shell/hush.c:11429:37: warning: passing argument 3 to 
restrict-qualified parameter aliases with argument 2 [-Wrestrict]
   sigprocmask(SIG_SETMASK, &oldset, &oldset);

networking/inetd.c: In function 'block_CHLD_HUP_ALRM':
networking/inetd.c:491:2: warning: passing argument 3 to 
restrict-qualified parameter aliases with argument 2 [-Wrestrict]
  sigprocmask(SIG_BLOCK, m, m); /* old sigmask is stored in m */

procps/powertop.c: In function 'read_cstate_counts':
procps/powertop.c:181:20: warning: '%s' directive writing up to 255 
bytes into a region of size 171 [-Wformat-overflow=]
   sprintf(buf, "%s/%s/power", "/proc/acpi/processor", d->d_name);
                    ^~
procps/powertop.c:181:3: note: 'sprintf' output between 28 and 283 
bytes into a destination of size 192
   sprintf(buf, "%s/%s/power", "/proc/acpi/processor", d->d_name);

util-linux/mdev.c: In function 'fileAction':
util-linux/mdev.c:834:25: warning: passing argument 2 to 
restrict-qualified parameter aliases with argument 1 [-Wrestrict]
  res = readlink(subsys, subsys, sizeof(subsys)-1);

libbb/lineedit.c: In function 'read_line_input':
libbb/lineedit.c:2422:43: warning: passing argument 3 to 
restrict-qualified parameter aliases with argument 2 [-Wrestrict]
  sigaction(SIGWINCH, &S.SIGWINCH_handler, &S.SIGWINCH_handler);


Thoughts?


Cheers,

-- 
Cristian
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic