On Wed, Mar 26, 2014 at 1:54 PM, Jean-Marc Lasgouttes <[email protected]>wrote:

> 24/03/2014 21:12, Pavel Sanda:
>
>  Hi folks,
>>
>> gcc is emitting
>> filetools.cpp: In function 'void lyx::support::fileUnlock(int, const
>> char*)':
>> filetools.cpp:1084:31: warning: ignoring return value of 'int lockf(int,
>> int, __off_t)', declared with attribute warn_unused_result [-Wunused-result]
>>
>> Is it worth to apply this patch to get rid of it? (2.2 stuff only).
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
>>
>
> I the __attribute((unused)) portable in general?
>
> Why not use the return value to output a lyxerr warning if needed?
>
> JMarc
>
>
With respect to Windows it is portable if it is inside a #ifdef HAVE_LOCKF
.. ;).

I, too, thought about just using the value.

Vincent

Reply via email to