From ed675a92a1581214916030fd1e12d50810ad7dd4 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 11 Nov 2013 11:46:11 -0500 Subject: [PATCH] create_test_sourcelist: Fix linkage in generated test driver code Mark private function/global with static linkage. --- Templates/TestDriver.cxx.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 03916bf74..82537efea 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -18,7 +18,7 @@ typedef struct MainFuncPointer func; } functionMapEntry; -functionMapEntry cmakeGeneratedFunctionMapEntries[] = { +static functionMapEntry cmakeGeneratedFunctionMapEntries[] = { @CMAKE_FUNCTION_TABLE_ENTIRES@ {0,0} }; @@ -26,7 +26,7 @@ functionMapEntry cmakeGeneratedFunctionMapEntries[] = { /* Allocate and create a lowercased copy of string (note that it has to be free'd manually) */ -char* lowercase(const char *string) +static char* lowercase(const char *string) { char *new_string, *p;