Warn for type mismatch for gmx printf like functions 1/3
[alexxy/gromacs.git] / src / gromacs / tools / dump.cpp
index f5bec85997ab87b3be3081e11a878f5181e870f5..fcfc808365d3c33f1045a0d4fe86ec5d3e995650 100644 (file)
@@ -187,7 +187,7 @@ static void list_top(const char *fn)
     status = cpp_open_file(fn, &handle, cppopts);
     if (status != 0)
     {
-        gmx_fatal(FARGS, cpp_error(&handle, status));
+        gmx_fatal(FARGS, "%s", cpp_error(&handle, status));
     }
     do
     {
@@ -197,7 +197,7 @@ static void list_top(const char *fn)
         {
             if (status != eCPP_OK)
             {
-                gmx_fatal(FARGS, cpp_error(&handle, status));
+                gmx_fatal(FARGS, "%s", cpp_error(&handle, status));
             }
             else
             {
@@ -209,7 +209,7 @@ static void list_top(const char *fn)
     status = cpp_close_file(&handle);
     if (status != eCPP_OK)
     {
-        gmx_fatal(FARGS, cpp_error(&handle, status));
+        gmx_fatal(FARGS, "%s", cpp_error(&handle, status));
     }
 }