This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on -Werror usage in Makefiles...
Andreas Jaeger <aj@suse.de> writes:
> /cvs/gcc/gcc/crtstuff.c: In function `__do_global_dtors_aux':
>
> /cvs/gcc/gcc/crtstuff.c:282: warning: passing arg 1 of `__deregister_frame_info' discards qualifiers from pointer target type
> /cvs/gcc/gcc/crtstuff.c: In function `frame_dummy':
>
> /cvs/gcc/gcc/crtstuff.c:310: warning: passing arg 1 of `__register_frame_info' discards qualifiers from pointer target type
> make[2]: *** [crtbeginT.o] Error 1
>
> Is the following the right fix?
>
> I'm bootstrapping/regtesting on x86_64-linux-gnu now,
>
> Andreas
>
> 2003-10-26 Andreas Jaeger <aj@suse.de>
>
> * crtstuff.c (frame_dummy): Cast __EH_FRAME_BEGIN__ properly.
> (__do_global_dtors_aux): Likewise.
__EH_FRAME_BEGIN__ points into a read-only section, so better to
change the prototypes of __deregister_frame_info{,_bases},
__register_frame_info{,_bases}, if at all possible.
zw