summaryrefslogtreecommitdiff
path: root/Templates
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2013-11-11 11:46:11 -0500
committerBrad King <brad.king@kitware.com>2013-11-12 09:27:11 -0500
commited675a92a1581214916030fd1e12d50810ad7dd4 (patch)
treeef4ff2fecf73fc0d63e47fb4e304d634d0cabee4 /Templates
parentd3f7fa22ed8150eb030255adc4470578f1cc71e3 (diff)
downloadcmake-ed675a92a1581214916030fd1e12d50810ad7dd4.tar.gz
create_test_sourcelist: Fix linkage in generated test driver code
Mark private function/global with static linkage.
Diffstat (limited to 'Templates')
-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 03916bf74e..82537efea8 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;