Warnings when building for arm

Mike Frysinger vapier at gentoo.org
Sun Jul 5 17:13:53 UTC 2009


On Sunday 05 July 2009 10:42:58 Tito wrote:
> Hi,
> while building for arm I've noticed this warnings:
>
> libbb/sha1.c:176:1: warning: "R0" redefined
> In file included from
> /home/tito/Desktop/android/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/us
>r/include/signal.h:353, from include/libbb.h:22,
>                  from libbb/sha1.c:31:
> /home/tito/Desktop/android/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/us
>r/include/sys/ucontext.h:44:1: warning: this is the location of the previous
> definition libbb/sha1.c:177:1: warning: "R1" redefined
> /home/tito/Desktop/android/arm-2008q3/bin/../arm-none-linux-gnueabi/libc/us
>r/include/sys/ucontext.h:46:1: warning: this is the location of the previous
> definition
>
>
> The build completes, so it is not a big problem.
> Attached is a trivial patch that seems to fix the problem.
> Hope I've got it right with this obscure git voodo.

why dont we undef the macros before their first declaration.  i'm not aware of 
anything we're actually using from the context headers.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090705/c6866c84/attachment.pgp>


More information about the busybox mailing list