This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] add SIGNAL and ALARM intrinsics


On Sat, Nov 19, 2005 at 02:48:44PM -0500, Jakub Jelinek wrote:
> Then you should at least use *status = (long) signal (*number, handler);
> to shut up the warnings about the cast if that's intentional.
> With *status = (int) signal (*number, handler); it will warn:
> ../../../libgfortran/intrinsics/signal.c:52: warning: cast from pointer to integer of different size
> ../../../libgfortran/intrinsics/signal.c:73: warning: cast to pointer from integer of different size
> ../../../libgfortran/intrinsics/signal.c:73: warning: cast from pointer to integer of different size
> ../../../libgfortran/intrinsics/signal.c:75: warning: cast to pointer from integer of different size

Plus a comment in the source would help too I guess.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]