Hi,
commit fb7d0b3cefb80a105f7fd26bbc62e0cbf9192822
Author: Kyle McMartin <[email protected]>
Date: Mon Jan 24 11:13:04 2011 -0500
perf tool: Fix gcc 4.6.0 issues
GCC 4.6.0 in Fedora rawhide turned up some compile errors in tools/perf
due to the -Werror=unused-but-set-variable flag.
I've gone through and annotated some of the assignments that had side
effects (ie: return value from a function) with the __used annotation,
and in some cases, just removed unused code.
In a few cases, we were assigning something useful, but not using it in
later parts of the function.
kyle@dreadnought:~/src% gcc --version
gcc (GCC) 4.6.0 20110122 (Red Hat 4.6.0-0.3)
Cc: Ingo Molnar <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Kyle McMartin <[email protected]>
[ committer note: Fixed up the annotation fixes, as that code moved
recently ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-------- Weitergeleitete Nachricht --------
> Von: Thomas Meyer <[email protected]>
> An: Linux Kernel Mailing List <[email protected]>,
> [email protected]
> Betreff: 2.6.38.2 - perf - unused-but-set-variable
> Datum: Sun, 03 Apr 2011 22:05:46 +0200
>
> $ make
> CC bench/sched-pipe.o
> bench/sched-pipe.c: In function 'bench_sched_pipe':
> bench/sched-pipe.c:58:6: error: variable 'ret' set but not used
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
>
> make: *** [bench/sched-pipe.o] Error 1
>
> gcc version 4.6.0 20110331 (Red Hat 4.6.0-2) (GCC)
>
>
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable