• R/O
  • SSH
  • HTTPS

eirfs: Commit


Commit MetaInfo

Revisión170 (tree)
Tiempo2022-06-07 00:41:10
Autorquiret

Log Message

- adjustments related to maybe unused variables

Cambiar Resumen

Diferencia incremental

--- FileSystem/src/fsinternal/CFileSystem.memory.cpp (revision 169)
+++ FileSystem/src/fsinternal/CFileSystem.memory.cpp (revision 170)
@@ -56,7 +56,7 @@
5656 // Implement the performant object API.
5757 void* CFileSystem::MemAlloc( size_t memSize, size_t alignment ) noexcept
5858 {
59- CFileSystemNative *nativeMan = (CFileSystemNative*)this;
59+ [[maybe_unused]] CFileSystemNative *nativeMan = (CFileSystemNative*)this;
6060
6161 #ifdef FILESYS_MULTI_THREADING
6262 if ( NativeExecutive::CExecutiveManager *execMan = nativeMan->nativeMan )
@@ -70,7 +70,7 @@
7070
7171 bool CFileSystem::MemResize( void *memPtr, size_t memSize ) noexcept
7272 {
73- CFileSystemNative *nativeMan = (CFileSystemNative*)this;
73+ [[maybe_unused]] CFileSystemNative *nativeMan = (CFileSystemNative*)this;
7474
7575 #ifdef FILESYS_MULTI_THREADING
7676 if ( NativeExecutive::CExecutiveManager *execMan = nativeMan->nativeMan )
@@ -84,7 +84,7 @@
8484
8585 void CFileSystem::MemFree( void *memPtr ) noexcept
8686 {
87- CFileSystemNative *nativeMan = (CFileSystemNative*)this;
87+ [[maybe_unused]] CFileSystemNative *nativeMan = (CFileSystemNative*)this;
8888
8989 #ifdef FILESYS_MULTI_THREADING
9090 if ( NativeExecutive::CExecutiveManager *execMan = nativeMan->nativeMan )
@@ -106,4 +106,4 @@
106106 void unregisterFileSystemMemoryManagement( void )
107107 {
108108 return;
109-}
\ No newline at end of file
109+}
--- FileSystem/src/fsinternal/CFileSystem.zip.translator.cpp (revision 169)
+++ FileSystem/src/fsinternal/CFileSystem.zip.translator.cpp (revision 170)
@@ -507,11 +507,11 @@
507507 NativeExecutive::CReadWriteWriteContextSafe <> ctxRemoveRef( fileInfo->metaData.lockAtomic );
508508 #endif //FILESYS_MULTI_THREADING
509509
510- m_info.metaData.locks.RemoveByValue( this );
510+ fileInfo->metaData.locks.RemoveByValue( this );
511511
512512 if ( this->m_hasStreamRef )
513513 {
514- m_info.metaData.ReleaseDataStream();
514+ fileInfo->metaData.ReleaseDataStream();
515515 }
516516 }
517517
@@ -877,7 +877,7 @@
877877 NativeExecutive::CReadWriteWriteContextSafe <> ctxWriteInfo( fileInfo->metaData.lockAtomic );
878878 #endif //FILESYS_MULTI_THREADING
879879
880- CZIPArchiveTranslator *archive = &this->m_archive;
880+ [[maybe_unused]] CZIPArchiveTranslator *archive = &this->m_archive;
881881
882882 // TODO: think about revising the data model where we write stuff directly into the archive for uncompressed files.
883883 // Not really important because uncompressed files are rarely used in .ZIP containers anyway.
Show on old repository browser