guile-devel
[Top][All Lists]
Advanced

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

Re: guile-1.8.1 - problems on AMD64


From: Ludovic Courtès
Subject: Re: guile-1.8.1 - problems on AMD64
Date: Mon, 16 Oct 2006 10:04:35 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hi,

Stanislav Ievlev <address@hidden> writes:

> On Sat, Oct 14, 2006 at 02:13:38PM +0100, Neil Jerram wrote:
>> address@hidden (Ludovic Court?s) writes:
>> 
>> > As for this:
>> >
>> >   async.c: In function 'scm_i_queue_async_cell':
>> >   async.c:250: warning: ignoring return value of 'write', declared with 
>> > attribute warn_unused_result
>> >
>> > I don't really understand what this code does, but I have the feeling
>> > that line 250 could be rewritten this way:
>> >
>> >   SCM_SYSCALL ((void)write (sleep_fd, &dummy, 1));
>> >
>> > Can somebody familiar with this comment?
>> 
>> Agreed.  Stanislav, can you try this and confirm whether it removes
>> the warning you are getting?
>
> New compiller is a too smart for it ;)

I guess the point of this `_FORTIFY_SOURCE' thing is to help catch
errors related to interactions with the kernel (among others).  The idea
is that when performing a system call, one _should_ be concerned about
its result.

In the case of async.c:250, I don't understand whether/how failure of
the `write ()' call should be handled.

Thanks,
Ludovic.




reply via email to

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