From b3191db47eeb7cfdb6e75bf93d0bb034f659ab9f Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Tue, 23 Dec 2014 03:21:24 -0500 Subject: [PATCH] Bug 1073003 - Fix -Wunused-variable in Nuwa.cpp. r=glandium --HG-- extra : rebase_source : 6d902895f5e2d08be939213c414e763968d64547 --- mozglue/build/Nuwa.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozglue/build/Nuwa.cpp b/mozglue/build/Nuwa.cpp index ae6d648041c..1ad04c9a165 100644 --- a/mozglue/build/Nuwa.cpp +++ b/mozglue/build/Nuwa.cpp @@ -909,11 +909,16 @@ static int sRecreateGatePassed = 0; * 3) Freeze point 2: blocks the current thread by acquiring sThreadFreezeLock. * If freezing is not enabled then revert the counter change in freeze * point 1. + * + * Note: the purpose of the '(void) variable;' statements is to avoid + * -Wunused-but-set-variable warnings. */ #define THREAD_FREEZE_POINT1() \ bool freezeCountChg = false; \ bool recreated = false; \ + (void) recreated; \ volatile bool freezePoint2 = false; \ + (void) freezePoint2; \ thread_info_t *tinfo; \ if (sIsNuwaProcess && \ (tinfo = CUR_THREAD_INFO) && \