Avoid a possible compiler bug while using a macro with variable arguments.
authormarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 11:18:55 +0000 (11:18 +0000)
committermarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 11:18:55 +0000 (11:18 +0000)
dummynet2/radix.c

index 5d508e4..6e256d3 100644 (file)
@@ -934,10 +934,13 @@ on1:
                                                MKFree(m);
                                        m = mm;
                                }
-                       if (m)
-                               log(LOG_ERR,
-                                   "rn_delete: Orphaned Mask %p at %p\n",
-                                   (void *)m, (void *)x);
+                       if (m) {
+                               /* these two variables are used to avoid a possible
+                                  compiler bug while using a macro with variable arguments */
+                               void *log_m = m;
+                               void *log_x = x;
+                               log(LOG_ERR, "rn_delete: Orphaned Mask %p at %p\n", log_m, log_x);
+                       }
                }
        }
        /*