ComputationalRadiationPhysics / libSplash

libSplash - Simple Parallel file output Library for Accumulating Simulation data using Hdf5
GNU Lesser General Public License v3.0
15 stars 15 forks source link

GCC 6.2.0: Compile Error #255

Closed ax3l closed 7 years ago

ax3l commented 7 years ago

Compiling with gcc 6.2.0 leads to a compile error in DCHelper.hpp line 150:

In file included from src/SerialDataCollector.cpp:38:0:
src/include/splash/core/DCHelper.hpp: In static member function static void splash::DCHelper::getOptimalChunkDims(const hsize_t*, uint32_t, size_t, hsize_t*):
src/include/splash/core/DCHelper.hpp:150:85: error: call of overloaded abs(size_t) is ambiguous
                 size_t chunk_diff = abs(target_chunk_size - (current_chunk_size * 2));
ax3l commented 7 years ago

same bug as #147

ax3l commented 7 years ago

is abs even useful here? (size_t - (size_t * 2)) would flip anyway... o.0