Re: [Exim] Compiler warnings with GCC 3.3 (dereferencing typ…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Metzler
Date:  
À: exim-users
Nouveaux-sujets: Re: [Exim] Compiler warnings with GCC 3.3 (dereferenycing type-punned pointer will break strict-aliasingrules)
Sujet: Re: [Exim] Compiler warnings with GCC 3.3 (dereferencing type-punned pointer will break strict-aliasingrules)
On Thu, Jul 24, 2003 at 03:16:25PM +0200, Sheldon Hearn wrote:
> On (2003/07/24 15:07), Andreas Metzler wrote:

[...]
> > | gcc -o em_init.o -c -g -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> > |   -O2 -I. -I../exim_monitor  -I/usr/X11R6/include \
> > |    ../exim_monitor/`echo em_init.o | sed 's/o$/c/'`


> Where does all that weird stuff (-Wall -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE) come from?


-Wall is not "weird". Compiling without /any/ -W options _imho_ is
weird. ;-)

> Certainly not the Exim distribution.


That's set manually (and -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE afaik is
Linux/glibc-only), and not connected to the issue, I am pretty sure you'll
get the same warning if _you_ just enable -Wall.
               cu andreas