guile-devel
[Top][All Lists]
Advanced

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

Re: gcc's catching more "errors" now...


From: Bruce Korb
Subject: Re: gcc's catching more "errors" now...
Date: Fri, 09 May 2003 09:20:16 -0700

Rob Browning wrote:
> 
> I tried configuring with CC=gcc-3.3, and we get:
> 
> gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../libguile-ltdl -g -O2 
> -Werror -Wall -Wmissing-prototypes -MT eval.lo -MD -MP -MF .deps/eval.Tpo -c 
> eval.c  -fPIC -DPIC -o .libs/eval.lo
> eval.c: In function `scm_ceval':
> eval.c:1966: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules
> In file included from eval.c:4591:
> eval.c: In function `scm_deval':
> eval.c:1966: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules
> 
> which is complaining about this:
> 
>   if (scm_stack_checking_enabled_p
>       && SCM_STACK_OVERFLOW_P ((SCM_STACKITEM *) &proc))
>     {

    void* p_proc = &proc;
>   if (scm_stack_checking_enabled_p
>       && SCM_STACK_OVERFLOW_P ((SCM_STACKITEM *) p_proc))

"void*" may alias anything.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]