]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311929:
authordim <dim@FreeBSD.org>
Wed, 25 Jan 2017 19:16:24 +0000 (19:16 +0000)
committerdim <dim@FreeBSD.org>
Wed, 25 Jan 2017 19:16:24 +0000 (19:16 +0000)
commit81939bda624466ef4415f560896207940d8f9ce7
tree249836288c5c35595bb64af80961e5b88baa8cfb
parent23feada9c8f688a0692877c7627f83574215dc03
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())
                                      ^
sys/boot/common/reloc_elf.c