include/compiler.h: remove redundant declaration of errno
authorWolfgang Denk <wd@denx.de>
Sun, 20 Jun 2010 00:16:44 +0000 (02:16 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 20 Jun 2010 00:21:58 +0000 (02:21 +0200)
Commit 37566090 "compiler.h: unify system ifdef cruft here" added both
a "#include <errno.h>" and a "extern int errno;" to include/compiler.h
which is causing build warnings for some systems, for example for the
"netstar" board:

In file included from /home/wd/git/u-boot/work/lib/crc32.c:15:
include/compiler.h:28: warning: function declaration isn't a prototype

The declaration of "errno" should be redundant, as <errno.h> is
supposed to provide a correct declaration, so drop it.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
include/compiler.h

index 8030bf6ed23bb9b371c2eb5bb289e031a5f23f93..23f4b834d8df0fdf3d821c2d52deb9aff56a3cce 100644 (file)
@@ -25,8 +25,6 @@
 #include <stdio.h>
 #include <string.h>
 
-extern int errno;
-
 #if !defined(__WIN32__) && !defined(__MINGW32__)
 # include <sys/mman.h>
 #endif