瀏覽代碼

Workaround for sudden internal compiler errors

Source commit: cade67a84eacc3608c6c0825543dc08dbb1e2a0b
Martin Prikryl 1 年之前
父節點
當前提交
f320d89edd
共有 1 個文件被更改,包括 4 次插入0 次删除
  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;