diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-21 05:58:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-21 06:00:40 +0300 |
commit | 6d97f9a5c1c77d30b4a1939ad81708a44f225280 (patch) | |
tree | d80b7a142002751e63a4a59c61219f7f5dc5791f /source/blender/blenlib | |
parent | 4abafa20621ecacb2ad4ba5d44a35959a1f4c6b8 (diff) |
Cleanup: use static local variables
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/BLI_mmap.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/tests/BLI_string_utf8_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_mmap.c b/source/blender/blenlib/intern/BLI_mmap.c index 2fd162de22c..71510b62ba1 100644 --- a/source/blender/blenlib/intern/BLI_mmap.c +++ b/source/blender/blenlib/intern/BLI_mmap.c @@ -67,7 +67,7 @@ struct BLI_mmap_file { * handler if one was configured and abort the process otherwise. */ -struct error_handler_data { +static struct error_handler_data { ListBase open_mmaps; char configured; void (*next_handler)(int, siginfo_t *, void *); diff --git a/source/blender/blenlib/tests/BLI_string_utf8_test.cc b/source/blender/blenlib/tests/BLI_string_utf8_test.cc index 1833945b3fd..2796cbbfbda 100644 --- a/source/blender/blenlib/tests/BLI_string_utf8_test.cc +++ b/source/blender/blenlib/tests/BLI_string_utf8_test.cc @@ -22,7 +22,7 @@ * Based on utf-8 decoder stress-test (https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt) * by Markus Kuhn <http://www.cl.cam.ac.uk/~mgk25/> - 2015-08-28 - CC BY 4.0 */ -const char *utf8_invalid_tests[][3] = { +static const char *utf8_invalid_tests[][3] = { /* 1 Some correct UTF-8 text. */ {"You should see the Greek word 'kosme': \"\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5\" |", "You should see the Greek word 'kosme': \"\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5\" |", "\x00"}, |