summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-13 14:57:49 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-13 14:57:49 (GMT)
commit85b91039c2ec3956a8107dc5619dec72e481209b (patch)
tree038a297fefc9d572208a7324e444a7e488e3b759
parent3c4071bec469f10cd802c8db43f3558aa71bd73b (diff)
parented675a92a1581214916030fd1e12d50810ad7dd4 (diff)
downloadCMake-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.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;