Skip to content

Commit 7bd3d76

Browse files
bjdooks-ctkrisman
authored andcommitted
unicode: make utf8 test count static
The variables failed_tests and total_tests are not used outside of the utf8-selftest.c file so make them static to avoid the following warnings: fs/unicode/utf8-selftest.c:17:14: warning: symbol 'failed_tests' was not declared. Should it be static? fs/unicode/utf8-selftest.c:18:14: warning: symbol 'total_tests' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Link: https://lore.kernel.org/r/20240308183215.1924331-1-ben.dooks@codethink.co.uk Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
1 parent 6ba59ff commit 7bd3d76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/unicode/utf8-selftest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
#include "utf8n.h"
1616

17-
unsigned int failed_tests;
18-
unsigned int total_tests;
17+
static unsigned int failed_tests;
18+
static unsigned int total_tests;
1919

2020
/* Tests will be based on this version. */
2121
#define UTF8_LATEST UNICODE_AGE(12, 1, 0)

0 commit comments

Comments
 (0)