On Sat, Nov 20, 2010 at 12:36:05AM -0800, Nerius Landys wrote:

> 3. Removed some references to a size_t return value from write() where it
> wasn't being used.

It was used. In glibc write() is marked with warn_unused_result
attribute.
I think it was enabled by default before, now it requires
-D_FORTIFY_SOURCE=1 or above to trigger this warning.

> @@ -88,14 +106,13 @@
>  static void CON_Back( void )
>  {
>       char key;
> -     size_t size;
>  
>       key = '\b';
> -     size = write(STDOUT_FILENO, &key, 1);
> +     write(STDOUT_FILENO, &key, 1);
>       key = ' ';
> -     size = write(STDOUT_FILENO, &key, 1);
> +     write(STDOUT_FILENO, &key, 1);
>       key = '\b';
> -     size = write(STDOUT_FILENO, &key, 1);
> +     write(STDOUT_FILENO, &key, 1);
>  }

-- 
 ____    sparky  --  Przemyslaw  ................ LANG...Pl,Ca,Es,En
/____) ___  ___  _ _ || Iskra   : WWW . http://ppcrcd.pld-linux.org/
\____\| -_)'___| ||^'||//\\//   : WWW2 ............ http://rsget.pl/
(____/||   (_-_|_||  ||\\ ||    : eMail ..... <[email protected]>
_______________________________________________
ioquake3 mailing list
[email protected]
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to