Warn for type mismatch for gmx printf like functions 1/3
[alexxy/gromacs.git] / src / gromacs / domdec / domdec.cpp
index 6c87d0dff11819d58fb2b6f90a15a552f53ef706..60e6c0cb10aa6d23916171cd91285cf62b2e07b2 100644 (file)
@@ -3353,7 +3353,7 @@ static int forceDlbOffOrBail(int                cmdlineDlbState,
 
     if (cmdlineDlbState == edlbsOnUser)
     {
-        gmx_fatal(FARGS, (dlbNotSupportedErr + reasonStr).c_str());
+        gmx_fatal(FARGS, "%s", (dlbNotSupportedErr + reasonStr).c_str());
     }
     else if (cmdlineDlbState == edlbsOffCanTurnOn)
     {
@@ -6482,7 +6482,7 @@ void dd_partition_system(FILE                *fplog,
     {
         if (state_local->ddp_count > dd->ddp_count)
         {
-            gmx_fatal(FARGS, "Internal inconsistency state_local->ddp_count (%d) > dd->ddp_count (%d)", state_local->ddp_count, dd->ddp_count);
+            gmx_fatal(FARGS, "Internal inconsistency state_local->ddp_count (%d) > dd->ddp_count (%ld)", state_local->ddp_count, dd->ddp_count);
         }
 
         if (state_local->ddp_count_cg_gl != state_local->ddp_count)