Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not require doxygen in maintainer mode
[simgrid.git] / src / xbt / xbt_log_layout_format.c
index 4fc14b2..b312bb8 100644 (file)
@@ -56,6 +56,7 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l,
   char *q = l->data;
   char *tmp;
   char *tmp2;
+  int vres; /* shut gcc up, but ignored */
 
   while (*q != '\0') {
     if (*q == '%') {
@@ -148,7 +149,7 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l,
           break;
 
         case 'm': /* user-provided message; LOG4J compliant */
-          vasprintf(&tmp2, fmt, ev->ap_copy);
+          vres = vasprintf(&tmp2, fmt, ev->ap_copy);
           append1("%s","%.*s",tmp2);
           free(tmp2);
           break;