diff options
author | dim <dim@FreeBSD.org> | 2017-01-25 19:16:24 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2017-01-25 19:16:24 +0000 |
commit | 81939bda624466ef4415f560896207940d8f9ce7 (patch) | |
tree | 249836288c5c35595bb64af80961e5b88baa8cfb /sys/boot/common | |
parent | 23feada9c8f688a0692877c7627f83574215dc03 (diff) | |
download | FreeBSD-src-81939bda624466ef4415f560896207940d8f9ce7.zip FreeBSD-src-81939bda624466ef4415f560896207940d8f9ce7.tar.gz |
MFC r311929:
Don't include <errno.h> in reloc_elf.c, as it includes <stand.h> just
after it, which has a conflicting definition of errno. This leads to
the following warning with clang 4.0.0:
In file included from sys/boot/common/reloc_elf32.c:6:
In file included from sys/boot/common/reloc_elf.c:37:
/usr/obj/usr/src/tmp/usr/include/stand.h:155:12: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
extern int errno;
^
sys/sys/errno.h:46:26: note: expanded from macro 'errno'
#define errno (* __error())
^
Diffstat (limited to 'sys/boot/common')
-rw-r--r-- | sys/boot/common/reloc_elf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/boot/common/reloc_elf.c b/sys/boot/common/reloc_elf.c index 2b60d18..6d4a00f 100644 --- a/sys/boot/common/reloc_elf.c +++ b/sys/boot/common/reloc_elf.c @@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <machine/elf.h> -#include <errno.h> #include <stand.h> #define FREEBSD_ELF |