23bbfe5
From 04b7369490344d014b05dee5d48ca78cd04733ce Mon Sep 17 00:00:00 2001
23bbfe5
From: Tim Rühsen <tim.ruehsen@gmx.de>
23bbfe5
Date: Sat, 22 Feb 2020 13:40:50 +0100
23bbfe5
Subject: [PATCH] * tests/unit-tests.c: Fix 'multiple definition of...' with gcc 10
23bbfe5
23bbfe5
---
23bbfe5
 tests/unit-tests.c | 4 ++--
23bbfe5
 1 file changed, 2 insertions(+), 2 deletions(-)
23bbfe5
23bbfe5
diff --git a/tests/unit-tests.c b/tests/unit-tests.c
23bbfe5
index 5fae8a2..f66e5e6 100644
23bbfe5
--- a/tests/unit-tests.c
23bbfe5
+++ b/tests/unit-tests.c
23bbfe5
@@ -37,7 +37,7 @@ as that of the covered work.  */
23bbfe5
 
23bbfe5
 #include "unit-tests.h"
23bbfe5
 
23bbfe5
-const char *program_argstring = "TEST";
23bbfe5
+extern const char *program_argstring;
23bbfe5
 
23bbfe5
 static int tests_run;
23bbfe5
 
23bbfe5
@@ -69,7 +69,7 @@ all_tests(void)
23bbfe5
   return NULL;
23bbfe5
 }
23bbfe5
 
23bbfe5
-const char *program_name; /* Needed by lib/error.c. */
23bbfe5
+extern const char *program_name; /* Needed by lib/error.c. */
23bbfe5
 
23bbfe5
 int
23bbfe5
 main (int argc _GL_UNUSED, const char *argv[])
23bbfe5
--
23bbfe5
libgit2 0.28.2
23bbfe5