Skip to content

Commit

Permalink
unicode: make utf8 test count static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gabriel Krisman Bertazi <[email protected]>
  • Loading branch information
bjdooks-ct authored and krisman committed Jun 20, 2024
1 parent 6ba59ff commit 7bd3d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/unicode/utf8-selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

#include "utf8n.h"

unsigned int failed_tests;
unsigned int total_tests;
static unsigned int failed_tests;
static unsigned int total_tests;

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

0 comments on commit 7bd3d76

Please sign in to comment.