From 7d6ded2ad735dc19ff1fb920391535aa8b73760a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 27 Jan 2001 00:48:06 +0000 Subject: [PATCH] installed workaround for gnu warning --- src/ca/iocinf.h | 12 ++++++++++++ src/ca/oldAccess.h | 6 ++++++ src/ca/repeater.cpp | 1 + 3 files changed, 19 insertions(+) diff --git a/src/ca/iocinf.h b/src/ca/iocinf.h index d29efbc0f..b7d68bbed 100644 --- a/src/ca/iocinf.h +++ b/src/ca/iocinf.h @@ -108,6 +108,9 @@ static const unsigned comBufSize = 0x4000; +class gnuWarningEliminate { +}; + class wireSendAdapter { public: virtual unsigned sendBytes ( const void *pBuf, @@ -156,6 +159,7 @@ private: unsigned char buf [ comBufSize ]; // optimal for 100 Mb Ethernet LAN MTU unsigned clipNElem ( unsigned elemSize, unsigned nElem ); + friend class gnuWarningEliminate; }; struct msgDescriptor { @@ -335,6 +339,7 @@ private: void lockOutstandingIO () const; void unlockOutstandingIO () const; const char * pHostName () const; // deprecated - please do not use + friend class gnuWarningEliminate; }; class baseNMIU : public tsDLNode < baseNMIU >, @@ -379,6 +384,7 @@ private: class netSubscription * isSubscription (); ~netSubscription (); static tsFreeList < class netSubscription, 1024 > freeList; + friend class gnuWarningEliminate; }; class netReadCopyIO : public baseNMIU { @@ -400,6 +406,7 @@ private: void uninstall (); ~netReadCopyIO (); // must be allocated from pool static tsFreeList < class netReadCopyIO, 1024 > freeList; + friend class gnuWarningEliminate; }; class netReadNotifyIO : public cacNotifyIO, public baseNMIU { @@ -416,6 +423,7 @@ private: void exceptionNotify ( int status, const char *pContext, unsigned type, unsigned long count ); ~netReadNotifyIO (); static tsFreeList < class netReadNotifyIO, 1024 > freeList; + friend class gnuWarningEliminate; }; class netWriteNotifyIO : public cacNotifyIO, public baseNMIU { @@ -432,6 +440,7 @@ private: void exceptionNotify ( int status, const char *pContext, unsigned type, unsigned long count ); ~netWriteNotifyIO (); static tsFreeList < class netWriteNotifyIO, 1024 > freeList; + friend class gnuWarningEliminate; }; /* @@ -707,6 +716,7 @@ private: bool ioComplete; char hostNameBuf [128]; ~hostNameCache (); + friend class gnuWarningEliminate; static tsFreeList < class hostNameCache, 16 > freeList; }; @@ -891,6 +901,7 @@ private: static tsFreeList < class bhe, 1024 > freeList; epicsShareFunc ~bhe (); // force allocation from freeList + friend class gnuWarningEliminate; }; class caErrorCode { @@ -970,6 +981,7 @@ private: unsigned long seqNo; static tsFreeList < class syncGroupNotify, 1024 > freeList; + friend class gnuWarningEliminate; }; /* diff --git a/src/ca/oldAccess.h b/src/ca/oldAccess.h index 515060247..e07d9e913 100644 --- a/src/ca/oldAccess.h +++ b/src/ca/oldAccess.h @@ -17,6 +17,9 @@ extern "C" void cacNoConnHandler ( struct connection_handler_args args ); +class gnuOldAccessWarningEliminate { +}; + struct oldChannel : public cacChannel { public: oldChannel (caCh *pConnCallBack, void *pPrivate); @@ -65,6 +68,7 @@ private: void exceptionNotify (int status, const char *pContext); void exceptionNotify ( int status, const char *pContext, unsigned type, unsigned long count ); static tsFreeList < class getCallback, 1024 > freeList; + friend class gnuWarningEliminate; }; class putCallback : public cacNotify { @@ -85,6 +89,7 @@ private: void exceptionNotify ( int status, const char *pContext ); void exceptionNotify ( int status, const char *pContext, unsigned type, unsigned long count ); static tsFreeList < class putCallback, 1024 > freeList; + friend class gnuWarningEliminate; }; struct oldSubscription : public cacNotify { @@ -109,5 +114,6 @@ private: ~oldSubscription (); // must allocate from pool static tsFreeList < struct oldSubscription, 1024 > freeList; + friend class gnuWarningEliminate; }; diff --git a/src/ca/repeater.cpp b/src/ca/repeater.cpp index 6400667b3..d8f424047 100644 --- a/src/ca/repeater.cpp +++ b/src/ca/repeater.cpp @@ -85,6 +85,7 @@ private: static tsFreeList < class repeaterClient, 0x20 > freeList; ~repeaterClient (); unsigned port () const; + friend class gnuWarningEliminate; }; /*