From: marta Date: Thu, 7 Jan 2010 11:18:55 +0000 (+0000) Subject: Avoid a possible compiler bug while using a macro with variable arguments. X-Git-Tag: ipfw-0.9-8~5 X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=commitdiff_plain;h=7677cf8ea078c67480dbef9bdbda736cc97b5ac0 Avoid a possible compiler bug while using a macro with variable arguments. --- diff --git a/dummynet2/radix.c b/dummynet2/radix.c index 5d508e4..6e256d3 100644 --- a/dummynet2/radix.c +++ b/dummynet2/radix.c @@ -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); + } } } /*