Warn for type mismatch for gmx printf like functions 2/3
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.cpp
index 82c96097f4250bb3071738d61a90d3822d985be7..7337df0886251b4c24d86a565cd26ba2edae96a4 100644 (file)
@@ -679,16 +679,14 @@ int Mdrunner::mdrunner()
         gmx_fatal(FARGS,
                   "The -dd or -npme option request a parallel simulation, "
 #if !GMX_MPI
-                  "but %s was compiled without threads or MPI enabled"
+                  "but %s was compiled without threads or MPI enabled", output_env_get_program_display_name(oenv));
 #else
 #if GMX_THREAD_MPI
-                  "but the number of MPI-threads (option -ntmpi) is not set or is 1"
+                  "but the number of MPI-threads (option -ntmpi) is not set or is 1");
 #else
-                  "but %s was not started through mpirun/mpiexec or only one rank was requested through mpirun/mpiexec"
+                  "but %s was not started through mpirun/mpiexec or only one rank was requested through mpirun/mpiexec", output_env_get_program_display_name(oenv));
 #endif
 #endif
-                  , output_env_get_program_display_name(oenv)
-                  );
     }
 
     if (doRerun &&