From 2404ae7b78fe41c7169237f3e7ec82db2b770da0 Mon Sep 17 00:00:00 2001
From: Tinny Ng <tng@apache.org>
Date: Fri, 23 Nov 2001 16:16:17 +0000
Subject: [PATCH] Elimiate compiler warning Warning (Anachronism): Formal
 argument start_routine of type extern "C" void*(*)(void*) in call to
 pthread_create(unsigned*, const _pthread_attr*, extern "C" void*(*)(void*),
 void*) is being passed void*(*)(void*).

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173286 13f79535-47bb-0310-9956-ffa450edef68
---
 tests/IThreadTest/IThreadTest.cpp | 13 ++-----------
 tests/ThreadTest/ThreadTest.cpp   |  8 --------
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/tests/IThreadTest/IThreadTest.cpp b/tests/IThreadTest/IThreadTest.cpp
index 62b4859ce..bd47aa6fc 100644
--- a/tests/IThreadTest/IThreadTest.cpp
+++ b/tests/IThreadTest/IThreadTest.cpp
@@ -137,9 +137,7 @@ void ThreadFuncs::startThread(ThreadFunc func, void *param)
 //
 //------------------------------------------------------------------------------
 
-#ifdef OS390
 extern "C" {
-#endif
 
 
 typedef void (*ThreadFunc)(void *);
@@ -180,9 +178,7 @@ void ThreadFuncs::startThread(ThreadFunc func, void *param)
     }
 
 }
-#ifdef OS390
 }
-#endif
 #else
 #error This platform is not supported
 #endif
@@ -806,13 +802,10 @@ void ReadFilesIntoMemory()
 //
 //----------------------------------------------------------------------
 
-#ifdef OS390
-extern "C" {
-#endif
-
 #ifdef PLATFORM_WIN32
 unsigned long WINAPI threadMain (void *param)
 #else
+extern "C" {
 void threadMain (void *param)
 #endif
 {
@@ -877,12 +870,10 @@ void threadMain (void *param)
     return 0;
 #else
     return;
+}
 #endif
 }
 
-#ifdef OS390
-}
-#endif
 
 
 
diff --git a/tests/ThreadTest/ThreadTest.cpp b/tests/ThreadTest/ThreadTest.cpp
index 6576c5fb2..fa9ba99a5 100644
--- a/tests/ThreadTest/ThreadTest.cpp
+++ b/tests/ThreadTest/ThreadTest.cpp
@@ -118,9 +118,7 @@ void ThreadFuncs::startThread(ThreadFunc func, void *param)
 //
 //------------------------------------------------------------------------------
 
-#ifdef OS390
 extern "C" {
-#endif
 
 
 typedef void (*ThreadFunc)(void *);
@@ -161,9 +159,7 @@ void ThreadFuncs::startThread(ThreadFunc func, void *param)
     }
 
 }
-#ifdef OS390
 }
-#endif
 #else
 #error This platform is not supported
 #endif
@@ -777,9 +773,7 @@ void ReadFilesIntoMemory()
 //
 //----------------------------------------------------------------------
 
-#ifdef OS390
 extern "C" {
-#endif
 
 void threadMain (void *param)
 {
@@ -841,9 +835,7 @@ void threadMain (void *param)
     }
 }
 
-#ifdef OS390
 }
-#endif
 
 
 
-- 
GitLab