summaryrefslogtreecommitdiffstats
path: root/Templates/TestDriver.cxx.in
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2013-11-11 16:46:11 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-12 14:27:11 (GMT)
commited675a92a1581214916030fd1e12d50810ad7dd4 (patch)
treeef4ff2fecf73fc0d63e47fb4e304d634d0cabee4 /Templates/TestDriver.cxx.in
parentd3f7fa22ed8150eb030255adc4470578f1cc71e3 (diff)
downloadCMake-ed675a92a1581214916030fd1e12d50810ad7dd4.zip
CMake-ed675a92a1581214916030fd1e12d50810ad7dd4.tar.gz
CMake-ed675a92a1581214916030fd1e12d50810ad7dd4.tar.bz2
create_test_sourcelist: Fix linkage in generated test driver code
Mark private function/global with static linkage.
Diffstat (limited to 'Templates/TestDriver.cxx.in')
-rw-r--r--Templates/TestDriver.cxx.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index 03916bf..82537ef 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;