From 6ac019eaee83a2d2d88a7f66b9f74fc9001ef6a9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 4 Sep 2023 23:38:34 +0200 Subject: [PATCH] unigbrk/uc-grapheme-breaks tests: Fix gcc -Wunused-function warning. * tests/unigbrk/test-uc-grapheme-breaks.c (graphemebreakproperty_to_string): Mark as possibly unused. --- ChangeLog | 4 ++++ tests/unigbrk/test-uc-grapheme-breaks.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ec5768b933..83bb90a29f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2023-09-04 Bruno Haible + unigbrk/uc-grapheme-breaks tests: Fix gcc -Wunused-function warning. + * tests/unigbrk/test-uc-grapheme-breaks.c + (graphemebreakproperty_to_string): Mark as possibly unused. + bitset, nonblocking-* tests: Fix gcc -Wunused-but-set-variable warnings. * tests/test-bitset.c (check_zero): Mark 'i' as possibly unused. * tests/test-nonblocking-reader.h (full_read): Mark 'spent_time' as diff --git a/tests/unigbrk/test-uc-grapheme-breaks.c b/tests/unigbrk/test-uc-grapheme-breaks.c index b898dc1c9f..6310d750c9 100644 --- a/tests/unigbrk/test-uc-grapheme-breaks.c +++ b/tests/unigbrk/test-uc-grapheme-breaks.c @@ -27,7 +27,7 @@ #include "macros.h" -static const char * +_GL_UNUSED static const char * graphemebreakproperty_to_string (int gbp) { printf ("%d\n", gbp); -- 2.39.5