U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] include/compiler.h: remove redunandt declaration of errno
@ 2010-06-20  0:20 y at denx.de
  2010-06-20  1:58 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: y at denx.de @ 2010-06-20  0:20 UTC (permalink / raw)
  To: u-boot

From: Wolfgang Denk <wd@denx.de>

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 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/include/compiler.h b/include/compiler.h
index 8030bf6..23f4b83 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -25,8 +25,6 @@
 #include <stdio.h>
 #include <string.h>
 
-extern int errno;
-
 #if !defined(__WIN32__) && !defined(__MINGW32__)
 # include <sys/mman.h>
 #endif
-- 
1.7.0.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-20 10:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-20  0:20 [U-Boot] [PATCH] include/compiler.h: remove redunandt declaration of errno y at denx.de
2010-06-20  1:58 ` Mike Frysinger
2010-06-20 10:12   ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox