Avoid a possible compiler bug while using a macro with variable arguments.
[ipfw.git] / 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);
+                       }
                }
        }
        /*