From: Namhyung Kim Date: Mon, 12 Nov 2012 05:14:00 +0000 (+0900) Subject: perf tools: Fix compile error on NO_NEWT=1 build X-Git-Tag: upstream/snapshot3+hdmi~6128^2~3^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f746c95f18ad4d85599d9c157da7e6da766c3d9;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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.... Signed-off-by: Namhyung Kim Cc: Feng Tang Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1352697240-422-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 1278c2c..8b091a5 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h @@ -195,7 +195,7 @@ static inline int hist_entry__tui_annotate(struct hist_entry *self return 0; } -static inline int script_browse(const char *script_opt) +static inline int script_browse(const char *script_opt __maybe_unused) { return 0; }