On Fri, Oct 23, 2009 at 5:28 PM, Cristian Ionescu-Idbohrn
<[email protected]> wrote:
> Linux 2.6.30-gentoo-r5 #1 SMP Mon Sep 21 11:16:30 CEST 2009 x86_64
> Intel(R) Core(TM) i7 CPU @ 9200 @ 2.67GHz GenuineIntel GNU/Linux
>
> gcc (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
>
>
> Many files show errors similar to this:
>
> coreutils/df.c: In function 'df_main':
> coreutils/df.c:111: error: format not a string literal and no format arguments
>
> Solved by:
>
> --- coreutils/df.c.orig 2009-10-22 00:55:55.000000000 +0200
> +++ coreutils/df.c      2009-10-23 14:20:37.608995275 +0200
> @@ -108,7 +108,7 @@ int df_main(int argc, char **argv)
>        if (optind >= argc) {
>                mount_table = setmntent(bb_path_mtab_file, "r");
>                if (!mount_table)
> -                       bb_perror_msg_and_die(bb_path_mtab_file);
> +                       bb_perror_msg_and_die("%s", bb_path_mtab_file);
>        }

We KNOW bb_path_mtab_file does not contain %format.
I do not want to vandalize code just because specific version of gcc
is nuts.

Does it compile with CONFIG_WERROR off?

> And this:
>
> networking/ifplugd.c: In function 'detect_link_ethtool':
> networking/ifplugd.c:364: error: assignment from incompatible pointer type
>
> is as far as I got today.

Replacing

ifreq.ifr_data = &edata;

with

ifreq.ifr_data = (void*) &edata;

in git. Thanks.

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to