mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CMake : Improve handling of compiler flags (#8486)
#8478 Code cleanup to fix some warnings Several adjustments to improve the specification and usage of compile flags.
This commit is contained in:
@@ -16,9 +16,9 @@ TEST( RigSlice2DTest, GetAndSet )
|
||||
|
||||
for ( size_t y = 0; y < ny; y++ )
|
||||
for ( size_t x = 0; x < nx; x++ )
|
||||
slice.setValue( x, y, x * y );
|
||||
slice.setValue( x, y, static_cast<double>( x * y ) );
|
||||
|
||||
for ( size_t y = 0; y < ny; y++ )
|
||||
for ( size_t x = 0; x < nx; x++ )
|
||||
EXPECT_EQ( x * y, slice.getValue( x, y ) );
|
||||
EXPECT_EQ( static_cast<double>( x * y ), slice.getValue( x, y ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user