diff --git a/src/gromacs/nbnxm/tests/kernel_test.cpp b/src/gromacs/nbnxm/tests/kernel_test.cpp index 379f03cf72d..d4a6d2c6e61 100644 --- a/src/gromacs/nbnxm/tests/kernel_test.cpp +++ b/src/gromacs/nbnxm/tests/kernel_test.cpp @@ -781,12 +781,12 @@ void registerTestsDynamically() CoulombKernelType::TableTwin #endif ), - ::testing::Values(vdwktLJCUT_COMBGEOM, - vdwktLJCUT_COMBLB, - vdwktLJCUT_COMBNONE, - vdwktLJFORCESWITCH, - vdwktLJPOTSWITCH, - vdwktLJEWALDCOMBGEOM))); + ::testing::Values(static_cast(vdwktLJCUT_COMBGEOM), + static_cast(vdwktLJCUT_COMBLB), + static_cast(vdwktLJCUT_COMBNONE), + static_cast(vdwktLJFORCESWITCH), + static_cast(vdwktLJPOTSWITCH), + static_cast(vdwktLJEWALDCOMBGEOM)))); registerTests( "NbnxmKernelTest", nameOfTest, fullNameOfTest, testCombinations);