Commit f85db9dd by Alan Mishchenko

Compiler warnings.

parent 13bd7b33
...@@ -370,7 +370,7 @@ int CmdCommandHistory( Abc_Frame_t * pAbc, int argc, char **argv ) ...@@ -370,7 +370,7 @@ int CmdCommandHistory( Abc_Frame_t * pAbc, int argc, char **argv )
// iRepeat = atoi(argv[globalUtilOptind]); // iRepeat = atoi(argv[globalUtilOptind]);
// print the commands // print the commands
if ( iRepeat >= 0 && iRepeat < Vec_PtrSize(pAbc->aHistory) ) if ( iRepeat >= 0 && iRepeat < Vec_PtrSize(pAbc->aHistory) )
fprintf( pAbc->Out, "%s", Vec_PtrEntry(pAbc->aHistory, Vec_PtrSize(pAbc->aHistory)-1-iRepeat) ); fprintf( pAbc->Out, "%s", (char *)Vec_PtrEntry(pAbc->aHistory, Vec_PtrSize(pAbc->aHistory)-1-iRepeat) );
else if ( nPrints > 0 ) else if ( nPrints > 0 )
Vec_PtrForEachEntryStart( char *, pAbc->aHistory, pName, i, Abc_MaxInt(0, Vec_PtrSize(pAbc->aHistory)-nPrints) ) Vec_PtrForEachEntryStart( char *, pAbc->aHistory, pName, i, Abc_MaxInt(0, Vec_PtrSize(pAbc->aHistory)-nPrints) )
fprintf( pAbc->Out, "%2d : %s\n", Vec_PtrSize(pAbc->aHistory)-i, pName ); fprintf( pAbc->Out, "%2d : %s\n", Vec_PtrSize(pAbc->aHistory)-i, pName );
......
...@@ -894,7 +894,7 @@ Vec_Str_t * Fra_SmlSimulateReadFile( char * pFileName ) ...@@ -894,7 +894,7 @@ Vec_Str_t * Fra_SmlSimulateReadFile( char * pFileName )
Vec_StrPush( vRes, (char)(c - '0') ); Vec_StrPush( vRes, (char)(c - '0') );
else if ( c != ' ' && c != '\r' && c != '\n' && c != '\t' ) else if ( c != ' ' && c != '\r' && c != '\n' && c != '\t' )
{ {
printf( "File \"%s\" contains symbol (%c) other than \'0\' or \'1\'.\n", c ); printf( "File \"%s\" contains symbol (%c) other than \'0\' or \'1\'.\n", (char)c );
Vec_StrFreeP( &vRes ); Vec_StrFreeP( &vRes );
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment