Re: Silence warning

2014-03-27 Thread Vincent van Ravesteijn
On Thu, Mar 27, 2014 at 4:23 AM, Pavel Sanda wrote: > Jean-Marc Lasgouttes wrote: > >> That was my first idea. But we no more have filename in our hands so > most > >> we can output > >> is something like "can't unlock file". You prefer this? > > > > Well, at least we will know that this triggers

Re: Silence warning

2014-03-26 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: >> That was my first idea. But we no more have filename in our hands so most >> we can output >> is something like "can't unlock file". You prefer this? > > Well, at least we will know that this triggers and maybe take a look at it. Like attached. Vincent you want thi

Re: Silence warning

2014-03-26 Thread Kornel Benko
Am Mittwoch, 26. März 2014 um 18:11:41, schrieb Jean-Marc Lasgouttes > 26/03/2014 16:24, Pavel Sanda: > >> I the __attribute((unused)) portable in general? > >> > >> Why not use the return value to output a lyxerr warning if needed? > > > > That was my first idea. But we no more have filename in

Re: Silence warning

2014-03-26 Thread Jean-Marc Lasgouttes
26/03/2014 16:24, Pavel Sanda: I the __attribute((unused)) portable in general? Why not use the return value to output a lyxerr warning if needed? That was my first idea. But we no more have filename in our hands so most we can output is something like "can't unlock file". You prefer this?

Re: Silence warning

2014-03-26 Thread Pavel Sanda
Jean-Marc Lasgouttes 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 attribut

Re: Silence warning

2014-03-26 Thread Vincent van Ravesteijn
On Wed, Mar 26, 2014 at 1:54 PM, Jean-Marc Lasgouttes 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,

Re: Silence warning

2014-03-26 Thread Jean-Marc Lasgouttes
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 wor

Silence warning

2014-03-24 Thread 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