diff options
Diffstat (limited to 'tools/perf/util/debug.h')
-rw-r--r-- | tools/perf/util/debug.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h index 05e660cbf7e2..bb2e7d1007ab 100644 --- a/tools/perf/util/debug.h +++ b/tools/perf/util/debug.h | |||
@@ -16,19 +16,20 @@ struct ui_progress; | |||
16 | struct perf_error_ops; | 16 | struct perf_error_ops; |
17 | 17 | ||
18 | #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT) | 18 | #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT) |
19 | static inline void ui_progress__update(u64 curr __used, u64 total __used, | 19 | static inline void ui_progress__update(u64 curr __maybe_unused, |
20 | const char *title __used) {} | 20 | u64 total __maybe_unused, |
21 | const char *title __maybe_unused) {} | ||
21 | 22 | ||
22 | #define ui__error(format, arg...) ui__warning(format, ##arg) | 23 | #define ui__error(format, arg...) ui__warning(format, ##arg) |
23 | 24 | ||
24 | static inline int | 25 | static inline int |
25 | perf_error__register(struct perf_error_ops *eops __used) | 26 | perf_error__register(struct perf_error_ops *eops __maybe_unused) |
26 | { | 27 | { |
27 | return 0; | 28 | return 0; |
28 | } | 29 | } |
29 | 30 | ||
30 | static inline int | 31 | static inline int |
31 | perf_error__unregister(struct perf_error_ops *eops __used) | 32 | perf_error__unregister(struct perf_error_ops *eops __maybe_unused) |
32 | { | 33 | { |
33 | return 0; | 34 | return 0; |
34 | } | 35 | } |