[gccsdk] mk project

John Tytgat John.Tytgat at aaug.net
Wed May 5 14:13:10 PDT 2010


In message <764b9f1251.ron.may at ron1954.woosh.co.nz>
          Ronald <ron.may at woosh.co.nz> wrote:

> archive.c: In function 'atouch':
> archive.c:98: warning: ignoring return value of 'write', declared with
>  attribute warn_unused_result
> 98:	write(fd, ARMAG, SARMAG);
> 	}

This means the following : write() returns the number of items it has
actually written.  This might be less than what you've asked so not
checking this means that it is not bullet proof code.

John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven




More information about the gcc mailing list