diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-09-08 13:58:32 -0500 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-09-08 13:58:32 -0500 |
commit | 2ba0dbe8cda9b342218077f3546dd3d61f2279e2 (patch) | |
tree | 8e306f1861fd3625de6a8fa7259eeaa019944487 | |
parent | 34940ef6ea0b21d77cb501d235164ad88f19d40c (diff) | |
download | libarchive-2ba0dbe8cda9b342218077f3546dd3d61f2279e2.tar.gz |
tests: mark failed_filename and tests static to fix WARNS=6 build
Observed on FreeBSD with a higher WARNS level on bsdcat/tests, these two
variables should be private to test_main.c in order to appease the build.
-rw-r--r-- | test_utils/test_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test_utils/test_main.c b/test_utils/test_main.c index 7b8aa70f..40dfa52f 100644 --- a/test_utils/test_main.c +++ b/test_utils/test_main.c @@ -475,7 +475,7 @@ static struct line { int count; int skip; } failed_lines[10000]; -const char *failed_filename; +static const char *failed_filename; /* Count this failure, setup up log destination and handle initial report. */ static void __LA_PRINTFLIKE(3, 4) @@ -3458,7 +3458,7 @@ assertion_entry_compare_acls(const char *file, int line, /* Use "list.h" to create a list of all tests (functions and names). */ #undef DEFINE_TEST #define DEFINE_TEST(n) { n, #n, 0 }, -struct test_list_t tests[] = { +static struct test_list_t tests[] = { #include "list.h" }; |