Bug 1073003 - Fix -Wunused-variable in Nuwa.cpp. r=glandium

--HG--
extra : rebase_source : 6d902895f5e2d08be939213c414e763968d64547
This commit is contained in:
Botond Ballo 2014-12-23 03:21:24 -05:00
parent bb16c1b6f4
commit b3191db47e

View File

@ -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) && \