diff options
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index dde8a26f7be3..4ff45e30c726 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -21,14 +21,15 @@ | |||
21 | #ifdef HAVE_CPLUS_DEMANGLE | 21 | #ifdef HAVE_CPLUS_DEMANGLE |
22 | extern char *cplus_demangle(const char *, int); | 22 | extern char *cplus_demangle(const char *, int); |
23 | 23 | ||
24 | static inline char *bfd_demangle(void __used *v, const char *c, int i) | 24 | static inline char *bfd_demangle(void __maybe_unused *v, const char *c, int i) |
25 | { | 25 | { |
26 | return cplus_demangle(c, i); | 26 | return cplus_demangle(c, i); |
27 | } | 27 | } |
28 | #else | 28 | #else |
29 | #ifdef NO_DEMANGLE | 29 | #ifdef NO_DEMANGLE |
30 | static inline char *bfd_demangle(void __used *v, const char __used *c, | 30 | static inline char *bfd_demangle(void __maybe_unused *v, |
31 | int __used i) | 31 | const char __maybe_unused *c, |
32 | int __maybe_unused i) | ||
32 | { | 33 | { |
33 | return NULL; | 34 | return NULL; |
34 | } | 35 | } |