Retry WarningAsErrors builds twice due to recurrent out-of-memory problems on the building machine
CUDA:hlt1_pp_default:Debug:-DUSE_ROOT=ON -DBUILD_TESTS=ON:build_warnings_as_errors
fails randomly when the host machine gets out of memory. This fix allows the test to be retried twice, probably increasing the success rate of the build.