From 9312bba01a41191f20821b66b84b3ff1d2902e8a Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sun, 20 Jun 2010 02:16:44 +0200 Subject: [PATCH] include/compiler.h: remove redundant declaration of errno Commit 37566090 "compiler.h: unify system ifdef cruft here" added both a "#include " 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 is supposed to provide a correct declaration, so drop it. Signed-off-by: Wolfgang Denk Cc: Mike Frysinger --- include/compiler.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/compiler.h b/include/compiler.h index 8030bf6ed2..23f4b834d8 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -25,8 +25,6 @@ #include #include -extern int errno; - #if !defined(__WIN32__) && !defined(__MINGW32__) # include #endif -- 2.39.5