Re: [PATCH] perf test: Fix build failure
From: Ingo Molnar
Date: Tue Sep 25 2012 - 07:55:36 EST
* Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx> wrote:
> Em Tue, Sep 25, 2012 at 11:20:28AM +0900, Namhyung Kim escreveu:
> > From: Namhyung Kim <namhyung.kim@xxxxxxx>
> >
> > The commit 6a6cd11d4e57 ("perf test: Add test for the sched tracepoint
> > format fields") added following build error:
> >
> > CC builtin-test.o
> > builtin-test.c: In function âperf_evsel__test_fieldâ:
> > builtin-test.c:1216:6: error: variable âretâ set but not used [-Werror=unused-but-set-variable]
> > builtin-test.c: In function âperf_evsel__tp_sched_testâ:
> > builtin-test.c:1242:6: error: variable âretâ set but not used [-Werror=unused-but-set-variable]
> > cc1: all warnings being treated as errors
> > make: *** [builtin-test.o] Error 1
>
>
> Interesting :-\
>
> [acme@sandy linux]$ gcc --version
> gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
This caught it here:
gcc version 4.7.0 20120507 (Red Hat 4.7.0-5) (GCC)
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/