xexecvp

Ian Abbott abbotti at mev.co.uk
Mon Jul 5 10:17:31 UTC 2010


On 03/07/10 23:47, Denys Vlasenko wrote:
> On Thursday 01 July 2010 16:48, Pascal Bellard wrote:
>> Hello,
>>
>> Code shrink using xexecvp (~250 bytes)
>>
>> defconfig case :
>>    text    data     bss     dec     hex filename
>>  715588    2077    9064  726729   b16c9 busybox_old
>>  715329    2077    9064  726470   b15c6 busybox_unstripped
>>
>> -pascal
> 
> cc1: warnings being treated as errors
> coreutils/chroot.c: In function 'chroot_main':
> coreutils/chroot.c:34: warning: control reaches end of non-void function
> make[1]: *** [coreutils/chroot.o] Error 1
> 

Adding 'NORETURN' to the declaration of xexecvp in "include/libbb.h"
should fix that.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-


More information about the busybox mailing list