On 3/8/2017 10:01 AM, Jeremy Harris wrote:
> On 08/03/17 09:05, Michael J. Tubby B.Sc. MIET wrote:
>> and believing that cleanliness is next to godliness have fixed the
>> warning by removing the (void) cast over the write function and
>> assigning the return value to variable 'sz'.
>> sz = write(fd, process_info, process_info_len);
>> close(fd);
>> }
> ... and you just _know_ that the <swearword> static analysers
> next year will be telling you that you assigned this variable
> and then never used it.
so then you add an:
sz++;
and on it goes ;-)
>
> It's a mug's game. Unfortunately.