diff --git a/test/zdtm/static/uprobes.c b/test/zdtm/static/uprobes.c index 4164375b7..6ef9a56bc 100644 --- a/test/zdtm/static/uprobes.c +++ b/test/zdtm/static/uprobes.c @@ -31,7 +31,7 @@ const char *test_author = "Shashank Balaji "; * compiler optimization) and use it (to prevent "unused variable" warning) */ void UPROBED_FUNCTION(void) { - volatile int dummy = 0; + volatile int dummy __maybe_unused = 0; dummy += 1; } /* Calling via volatile function pointer ensures noinline at callsite */