diff options
author | Sean McBride <sean@rogue-research.com> | 2013-11-11 11:46:11 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-12 09:27:11 -0500 |
commit | ed675a92a1581214916030fd1e12d50810ad7dd4 (patch) | |
tree | ef4ff2fecf73fc0d63e47fb4e304d634d0cabee4 /Templates | |
parent | d3f7fa22ed8150eb030255adc4470578f1cc71e3 (diff) | |
download | cmake-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.in | 4 |
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; |