mq_open_tests.c:38:14: warning: 'usage' defined but not used
[-Wunused-variable]
38 | static char *usage =
| ^~~~~
Mark 'usage' with __attribute__((unused)) to fix the warning.
The variable is kept for documentation purposes.
https://virtuozzo.atlassian.net/browse/VSTOR-127529
Signed-off-by: Konstantin Khorenko <[email protected]>
Feature: fix selftests
---
tools/testing/selftests/mqueue/mq_open_tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/mqueue/mq_open_tests.c
b/tools/testing/selftests/mqueue/mq_open_tests.c
index 9403ac01ba11..989b9b5d8ee5 100644
--- a/tools/testing/selftests/mqueue/mq_open_tests.c
+++ b/tools/testing/selftests/mqueue/mq_open_tests.c
@@ -35,7 +35,7 @@
#include "../kselftest.h"
-static char *usage =
+static char __attribute__((unused)) *usage =
"Usage:\n"
" %s path\n"
"\n"
--
2.47.1
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel