mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1073003 - Fix -Wunused-variable in Nuwa.cpp. r=glandium
--HG-- extra : rebase_source : 6d902895f5e2d08be939213c414e763968d64547
This commit is contained in:
parent
e66b60d907
commit
7a5b4ebc78
@ -909,11 +909,16 @@ static int sRecreateGatePassed = 0;
|
|||||||
* 3) Freeze point 2: blocks the current thread by acquiring sThreadFreezeLock.
|
* 3) Freeze point 2: blocks the current thread by acquiring sThreadFreezeLock.
|
||||||
* If freezing is not enabled then revert the counter change in freeze
|
* If freezing is not enabled then revert the counter change in freeze
|
||||||
* point 1.
|
* point 1.
|
||||||
|
*
|
||||||
|
* Note: the purpose of the '(void) variable;' statements is to avoid
|
||||||
|
* -Wunused-but-set-variable warnings.
|
||||||
*/
|
*/
|
||||||
#define THREAD_FREEZE_POINT1() \
|
#define THREAD_FREEZE_POINT1() \
|
||||||
bool freezeCountChg = false; \
|
bool freezeCountChg = false; \
|
||||||
bool recreated = false; \
|
bool recreated = false; \
|
||||||
|
(void) recreated; \
|
||||||
volatile bool freezePoint2 = false; \
|
volatile bool freezePoint2 = false; \
|
||||||
|
(void) freezePoint2; \
|
||||||
thread_info_t *tinfo; \
|
thread_info_t *tinfo; \
|
||||||
if (sIsNuwaProcess && \
|
if (sIsNuwaProcess && \
|
||||||
(tinfo = CUR_THREAD_INFO) && \
|
(tinfo = CUR_THREAD_INFO) && \
|
||||||
|
Loading…
Reference in New Issue
Block a user