diff options
author | Brad King <brad.king@kitware.com> | 2013-11-13 14:57:49 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-11-13 14:57:49 (GMT) |
commit | 85b91039c2ec3956a8107dc5619dec72e481209b (patch) | |
tree | 038a297fefc9d572208a7324e444a7e488e3b759 | |
parent | 3c4071bec469f10cd802c8db43f3558aa71bd73b (diff) | |
parent | ed675a92a1581214916030fd1e12d50810ad7dd4 (diff) | |
download | CMake-85b91039c2ec3956a8107dc5619dec72e481209b.zip CMake-85b91039c2ec3956a8107dc5619dec72e481209b.tar.gz CMake-85b91039c2ec3956a8107dc5619dec72e481209b.tar.bz2 |
Merge topic 'create_test_sourcelist-clang-warnings'
ed675a9 create_test_sourcelist: Fix linkage in generated test driver code
-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 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; |