mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0032460: Coding Rules - eliminate CLang warning -Wunused-but-set-variable
Code has been adjusted to suppress -Wunused-but-set-variable warnings. DRAWEXE.wasm, compiler flags have been moved to linker flags to eliminiate -Wunused-command-line-argument warnings.
This commit is contained in:
@@ -538,6 +538,8 @@ Standard_Integer Standard_MMgrOpt::Purge(Standard_Boolean )
|
||||
aNextPool = * (Standard_Size **) aNextPool; // get next pool
|
||||
}
|
||||
const Standard_Integer iLast = iPool - 1;
|
||||
|
||||
(void )nPool; // unused but set for debug
|
||||
nPool += iPool;
|
||||
|
||||
// scan free blocks, find corresponding pools and increment
|
||||
@@ -631,6 +633,7 @@ Standard_Integer Standard_MMgrOpt::Purge(Standard_Boolean )
|
||||
aPrevPool = (aFreePools[iLastFree] == iLast
|
||||
? aPrev
|
||||
: aPools[iLast]);
|
||||
(void )nPoolFreed; // unused but set for debug
|
||||
nPoolFreed += iLastFree + 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user