svn commit: trunk/uClibc/libc/sysdeps/linux/common

Mike Frysinger vapier at gentoo.org
Fri Sep 1 05:23:58 UTC 2006


On Wednesday 30 August 2006 13:12, andersen at uclibc.org wrote:
> trunk/uClibc/libc/sysdeps/linux/common/open.c
> +int __libc_open(const char *file, int oflag, ...)
>  {
> -	/* gcc may warn about mode being uninitialized.
> -	 * Just ignore that, since gcc is wrong. */
> -	mode_t mode;
> +	mode_t mode = 0;

why ?  as the comment says, the warning can be safely ignored and setting a 
default value grows the object code a little
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060901/424e555d/attachment-0002.pgp 


More information about the uClibc mailing list