You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/11/23 17:16:17 UTC

cvs commit: xml-xerces/c/tests/IThreadTest IThreadTest.cpp

tng         01/11/23 08:16:17

  Modified:    c/tests/IThreadTest IThreadTest.cpp
  Log:
  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*).
  
  Revision  Changes    Path
  1.6       +3 -12     xml-xerces/c/tests/IThreadTest/IThreadTest.cpp
  
  Index: IThreadTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/tests/IThreadTest/IThreadTest.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- IThreadTest.cpp	2001/10/03 15:49:01	1.5
  +++ IThreadTest.cpp	2001/11/23 16:16:17	1.6
  @@ -55,7 +55,7 @@
    */
   
   /*
  -* $Id: IThreadTest.cpp,v 1.5 2001/10/03 15:49:01 tng Exp $
  +* $Id: IThreadTest.cpp,v 1.6 2001/11/23 16:16:17 tng Exp $
   */
   
   #include <stdlib.h>
  @@ -137,9 +137,7 @@
   //
   //------------------------------------------------------------------------------
   
  -#ifdef OS390
   extern "C" {
  -#endif
   
   
   typedef void (*ThreadFunc)(void *);
  @@ -180,9 +178,7 @@
       }
   
   }
  -#ifdef OS390
   }
  -#endif
   #else
   #error This platform is not supported
   #endif
  @@ -806,13 +802,10 @@
   //
   //----------------------------------------------------------------------
   
  -#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 @@
       return 0;
   #else
       return;
  +}
   #endif
   }
   
  -#ifdef OS390
  -}
  -#endif
   
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org