1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024180: Eliminate CLang / GCC compiler warning -Wswitch

Eliminated warnings -Wswitch shown by gcc
Eliminated two new warnings about wrong initialization order
Eliminated warnings about unused functions.
A few more ICC warnings (type conversions) fixed
This commit is contained in:
ski
2013-11-28 11:13:41 +04:00
committed by bugmaster
parent ebeff0a2bc
commit 566f84411f
39 changed files with 299 additions and 120 deletions

View File

@@ -261,17 +261,32 @@ static Standard_Integer DDocStd_SaveAs (Draw_Interpretor& di,
PCDM_StoreStatus theStatus = A->SaveAs(D,path);
if (theStatus != PCDM_SS_OK ) {
switch ( theStatus ) {
case PCDM_SS_DriverFailure: {
di << " could not store , no driver found to make it " <<"\n" ;
break ;
}
case PCDM_SS_WriteFailure: {
di << " Write access failure " << "\n" ;
break;
}
case PCDM_SS_Failure: {
di << " Write failure " << "\n" ;
}
case PCDM_SS_DriverFailure: {
di << "Error saving document: Could not store , no driver found to make it" << "\n";
break ;
}
case PCDM_SS_WriteFailure: {
di << "Error saving document: Write access failure" << "\n";
break;
}
case PCDM_SS_Failure: {
di << "Error saving document: Write failure" << "\n" ;
break;
}
case PCDM_SS_Doc_IsNull: {
di << "Error saving document: No document to save" << "\n";
break ;
}
case PCDM_SS_No_Obj: {
di << "Error saving document: No objects written" << "\n";
break;
}
case PCDM_SS_Info_Section_Error: {
di << "Error saving document: Write info section failure" << "\n" ;
break;
}
default:
break;
}
return 1;
} else {