Sfoglia il codice sorgente

Workaround for sudden internal compiler errors

Source commit: cade67a84eacc3608c6c0825543dc08dbb1e2a0b
Martin Prikryl 1 anno fa
parent
commit
f320d89edd
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      source/core/SftpFileSystem.cpp

+ 4 - 0
source/core/SftpFileSystem.cpp

@@ -1365,11 +1365,13 @@ protected:
 class TSFTPAsynchronousQueue : public TSFTPQueue
 {
 public:
+  #pragma option push -vi- // WORKAROUND for internal compiler errors
   __fastcall TSFTPAsynchronousQueue(TSFTPFileSystem * AFileSystem) : TSFTPQueue(AFileSystem)
   {
     FFileSystem->FSecureShell->RegisterReceiveHandler(ReceiveHandler);
     FReceiveHandlerRegistered = true;
   }
+  #pragma option pop
 
   virtual __fastcall ~TSFTPAsynchronousQueue()
   {
@@ -1411,6 +1413,7 @@ protected:
     return true;
   }
 
+  #pragma option push -vi- // See pragma at constructor
   void __fastcall UnregisterReceiveHandler()
   {
     if (FReceiveHandlerRegistered)
@@ -1419,6 +1422,7 @@ protected:
       FFileSystem->FSecureShell->UnregisterReceiveHandler(ReceiveHandler);
     }
   }
+  #pragma option pop
 
 private:
   bool FReceiveHandlerRegistered;