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

Reply via email to