Fix unused expression result warnings on OSX.

This commit is contained in:
Matt McCormick 2015-01-19 23:28:38 -05:00
parent 4c00be77ff
commit 040857a4e8
2 changed files with 5 additions and 5 deletions

@ -27,7 +27,7 @@ enum
template <class T>
inline T convert_unit( T num, int to, int from = BYTES)
{
for(from; from < to; from++)
for( ; from < to; from++)
{
num /= 1024;
}

@ -28,11 +28,11 @@ std::string get_graph_by_percentage( unsigned value, unsigned len )
unsigned bar_count = ( static_cast<float>(value) / 99.9 * len );
for( step; step < bar_count; step++ )
for( ; step < bar_count; step++ )
{
bars.append( "|" );
}
for( step; step < len; step++ )
for( ; step < len; step++ )
{
bars.append( " " );
}
@ -48,11 +48,11 @@ std::string get_graph_by_value( unsigned value, unsigned max, unsigned len )
unsigned bar_count = ( static_cast<float>( value / ( max - 0.1 ) ) * len );
for( step; step < bar_count; step++ )
for( ; step < bar_count; step++ )
{
bars.append( "|" );
}
for( step; step < len; step++ )
for( ; step < len; step++ )
{
bars.append( " " );
}