Re: [ANNOUNCE] util-linux v2.26-rc2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 05, 2015 at 10:48:30PM +0100, Benno Schulenberg wrote:
> 
> On Wed, Feb 4, 2015, at 12:53, Karel Zak wrote:
> > 
> > The util-linux release v2.26-rc2 is available at
> > 
> >   ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.26
> 
> It compiles without error, but shows these warnings along the way:
> 
> libfdisk/src/dos.c: In function 'add_partition':
> libfdisk/src/dos.c:1204: warning: format '%ju' expects type 'uintmax_t', but argument 4 has type 'long unsigned int'

 fixed

> sys-utils/ipcs.c: In function ‘do_shm’:
> sys-utils/ipcs.c:241: warning: dereferencing pointer ‘shm_info’ does break strict-aliasing rules
> sys-utils/ipcs.c:241: warning: dereferencing pointer ‘shm_info’ does break strict-aliasing rules
> sys-utils/ipcs.c:241: warning: dereferencing pointer ‘shm_info’ does break strict-aliasing rules
> sys-utils/ipcs.c:241: warning: dereferencing pointer ‘shm_info’ does break strict-aliasing rules
> sys-utils/ipcs.c:241: warning: dereferencing pointer ‘shm_info’ does break strict-aliasing rules
> sys-utils/ipcs.c:241: warning: dereferencing pointer ‘shm_info’ does break strict-aliasing rules
> sys-utils/ipcs.c:223: note: initialized from here
> 
> sys-utils/ipcutils.c: In function ‘ipc_shm_get_limits’:
> sys-utils/ipcutils.c:92: warning: dereferencing pointer ‘shminfo’ does break strict-aliasing rules
> sys-utils/ipcutils.c:91: warning: dereferencing pointer ‘shminfo’ does break strict-aliasing rules
> sys-utils/ipcutils.c:90: warning: dereferencing pointer ‘shminfo’ does break strict-aliasing rules
> sys-utils/ipcutils.c:89: note: initialized from here

 This does not happen with gcc version 4.9.2. If I good remember some
 old gcc versions are too strict on strict aliasing rules and it's
 almost impossible to cast non-allocated memory...

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux