perf tools: Fix compile error on NO_NEWT=1 build
Namhyung Kim
maintainerPATCH 1/1 perf tools: Fix compile error on NO_NEWT=1 build
From: Namhyung Kim <[email protected]>
CC builtin-annotate.o
In file included from util/evsel.h:10:0,
from util/evlist.h:8,
from builtin-annotate.c:20:util/hist.h: In function ‘script_browse’:util/hist.h:198:45: error: unused parameter ‘script_opt’ [-Werror=unused-parameter]
cc1: all warnings being treated as errors
make: *** [builtin-annotate.o] Error 1
make: *** Waiting for unfinished jobs....
--- tools/perf/util/hist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/hist.h +1 -1
@@ -195,7 +195,7 @@ static inline int hist_entry__tui_annotate(struct hist_entry *selfreturn 0 ; } -static inline int script_browse (const char *script_opt) +static inline int script_browse (const char *script_opt__maybe_unused ) {return 0 ; }
Signature · 1 line
1.7.11.7
Commit-ID: 4f746c95f18ad4d85599d9c157da7e6da766c3d9 Gitweb: http://git.kernel.org/tip/4f746c95f18ad4d85599d9c157da7e6da766c3d9 Author: Namhyung Kim <[email protected]> AuthorDate: Mon, 12 Nov 2012 14:14:00 +0900 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 14 Nov 2012 16:50:58 -0300
perf tools: Fix compile error on NO_NEWT=1 build
CC builtin-annotate.o
In file included from util/evsel.h:10:0,
from util/evlist.h:8,
from builtin-annotate.c:20:util/hist.h: In function ‘script_browse’:util/hist.h:198:45: error: unused parameter ‘script_opt’ [-Werror=unused-parameter]
cc1: all warnings being treated as errors
make: *** [builtin-annotate.o] Error 1
make: *** Waiting for unfinished jobs....
--- tools/perf/util/hist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/hist.h +1 -1
@@ -195,7 +195,7 @@ static inline int hist_entry__tui_annotate(struct hist_entry *selfreturn 0 ; } -static inline int script_browse (const char *script_opt) +static inline int script_browse (const char *script_opt__maybe_unused ) {return 0 ; }