Skip to contentSkip to conversation

unicode: make utf8 test count static

PATCH Applied Ben Dooks 2 participants 2 messages Mar 8, 2024

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 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?

---
 fs/unicode/utf8-selftest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/unicode/utf8-selftest.c +2 -2
index eb2bbdd688d7..c928e6007356 100644
@@ -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)
Signature · 1 line
2.37.2.352.g3c44437643
#1 lore raw
Quoted 8 lines · Ben Dooks

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?

[...]

Applied, thanks!

[1/1] unicode: make utf8 test count static

      commit: 0131c1f3cce7c01b0eb657a9e9e1a5e42c09a68b

Best regards,

Signature · 1 line
Gabriel Krisman Bertazi <[email protected]>