about gcc warnings

Gilles Espinasse g.esp at free.fr
Sun Feb 13 13:24:18 UTC 2011


----- Original Message ----- 
From: <gotrunks at gmail.com>
To: <busybox at busybox.net>
Sent: Sunday, February 13, 2011 1:39 PM
Subject: about gcc warnings


> In busybox there are a lot of compile warnings like:
> networking/wget.c:365: warning: format not a string literal and no
> format arguments
> 
> are these warnings wanted for some reason?

Should only be rusting code
This sort of warning is not present in 1.17.3.

> or can I fix them, like in the example below?
>


> -               bb_perror_msg_and_die(bb_msg_memory_exhausted);
> +               bb_perror_msg_and_die("%s", bb_msg_memory_exhausted);

To my understanding, this is the right fix.

Gilles



More information about the busybox mailing list