1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0024607: Fix some GCC compiler warnings

- enumeration value not handled in switch in Aspect_ColorScale.cxx, TNaming_DeltaOnModification.cxx
- comparison between signed and unsigned integer expressions in NIS_Triangulated.cxx, OSD_MAllocHook.cxx, RWStl.cxx
- static function defined or declared but not used in OpenGl_Workspace_2.cxx, ProjLib_ComputeApprox.cxx
This commit is contained in:
abv
2014-02-08 17:26:06 +04:00
committed by apn
parent feb2743f11
commit 8cb69787f2
7 changed files with 56 additions and 57 deletions

View File

@@ -508,6 +508,9 @@ void Aspect_ColorScale::DrawScale( const Quantity_Color& aBgColor,
Standard_Integer last1( i1 ), last2( i2 );
x = X + spacer;
switch ( labPos ) {
case Aspect_TOCSP_NONE:
case Aspect_TOCSP_LEFT:
break;
case Aspect_TOCSP_CENTER:
x += ( colorWidth - textWidth ) / 2;
break;