mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023934: Compiler warnings in MS VC++ 10
Elimination of compiler warnings - ExprIntrp: generated file ExprIntrp.tab.c and related WOK scripts removed from the sources - ExprIntrp, StepFile: added missing declarations and casts; warnings caused by Flex and Bison code suppressed for MSVC compuler by #pragma - OSD: dummy #includes added to files containing no code for Windows, to avoid warning on empty file - PLib: piece of code contained in PLib_ChangeDim.gxx included explicitly in cxx and cleaned - Other places: some casts added to avoid warnings
This commit is contained in:
@@ -139,7 +139,7 @@ TCollection_ExtendedString::TCollection_ExtendedString
|
||||
{
|
||||
if (astring) {
|
||||
if(!isMultiByte) {
|
||||
mylength = strlen( astring );
|
||||
mylength = (int)strlen( astring );
|
||||
mystring = Allocate((mylength+1)*2);
|
||||
for (int i = 0 ; i < mylength ; i++)
|
||||
mystring[i] = ToExtCharacter(astring[i]);
|
||||
@@ -235,7 +235,7 @@ TCollection_ExtendedString::TCollection_ExtendedString
|
||||
union {int bid ;
|
||||
char t [13];} CHN ;
|
||||
Sprintf(&CHN.t[0],"%d",aValue);
|
||||
mylength = strlen(CHN.t);
|
||||
mylength = (int)strlen(CHN.t);
|
||||
mystring = Allocate((mylength+1)*2);
|
||||
for (int i = 0 ; i < mylength ; i++) mystring[i] = ToExtCharacter(CHN.t[i]);
|
||||
mystring[mylength] = '\0';
|
||||
@@ -250,7 +250,7 @@ TCollection_ExtendedString::TCollection_ExtendedString
|
||||
union {int bid ;
|
||||
char t [50];} CHN ;
|
||||
Sprintf(&CHN.t[0],"%g",aValue);
|
||||
mylength = strlen( CHN.t );
|
||||
mylength = (int)strlen( CHN.t );
|
||||
mystring = Allocate((mylength+1)*2);
|
||||
for (int i = 0 ; i < mylength ; i++) mystring[i] = ToExtCharacter(CHN.t[i]);
|
||||
mystring[mylength] = '\0';
|
||||
|
Reference in New Issue
Block a user