perf tools: Use __maybe_used for unused variables
[deliverable/linux.git] / tools / perf / util / debug.h
index 05e660cbf7e2f90f9c237031bf4057e87c52cb47..bb2e7d1007ab0eb1b5850a2d79e1a4b0a519e85b 100644 (file)
@@ -16,19 +16,20 @@ struct ui_progress;
 struct perf_error_ops;
 
 #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT)
-static inline void ui_progress__update(u64 curr __used, u64 total __used,
-                                      const char *title __used) {}
+static inline void ui_progress__update(u64 curr __maybe_unused,
+                                      u64 total __maybe_unused,
+                                      const char *title __maybe_unused) {}
 
 #define ui__error(format, arg...) ui__warning(format, ##arg)
 
 static inline int
-perf_error__register(struct perf_error_ops *eops __used)
+perf_error__register(struct perf_error_ops *eops __maybe_unused)
 {
        return 0;
 }
 
 static inline int
-perf_error__unregister(struct perf_error_ops *eops __used)
+perf_error__unregister(struct perf_error_ops *eops __maybe_unused)
 {
        return 0;
 }
This page took 0.030573 seconds and 5 git commands to generate.