Commit 6d534f12 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Don't generate empty statements in DeterministicScheduleTest

Summary: Because MSVC generates warnings if you have a control-flow statement followed by a single trailing semicolon.

Reviewed By: yfeldblum

Differential Revision: D4155588

fbshipit-source-id: dfd8774fc6a62675764f7e069c26b799b622a9af
parent 2fac14da
...@@ -234,17 +234,17 @@ DEFINE_bool(bug, false, "Introduce bug"); ...@@ -234,17 +234,17 @@ DEFINE_bool(bug, false, "Introduce bug");
/** Macro for inline definition of auxiliary actions */ /** Macro for inline definition of auxiliary actions */
#define AUX_ACT(act) \ #define AUX_ACT(act) \
{ \ do { \
AUX_THR(func_) = __func__; \ AUX_THR(func_) = __func__; \
AUX_THR(line_) = __LINE__; \ AUX_THR(line_) = __LINE__; \
AuxAct auxfn( \ AuxAct auxfn( \
[&](bool success) { \ [&](bool success) { \
if (success); \ if (success) {} \
if (true) {act} \ if (true) {act} \
} \ } \
); \ ); \
DeterministicSchedule::setAuxAct(auxfn); \ DeterministicSchedule::setAuxAct(auxfn); \
} } while (0)
/** Alias for original class */ /** Alias for original class */
template <typename T> template <typename T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment