Suppress a noisy Coverity warning
This commit is contained in:
@@ -492,16 +492,19 @@ struct DummyStream
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __COVERITY__
|
||||||
|
// Coverity doesn't like this macro - CID 393138: Big parameter passed by value (PASS_BY_VALUE)
|
||||||
|
#define SIDE_EFFECT_CHECK(level, ...)
|
||||||
|
#else
|
||||||
#define SIDE_EFFECT_CHECK(level, ...) \
|
#define SIDE_EFFECT_CHECK(level, ...) \
|
||||||
do { \
|
|
||||||
if (0) { \
|
if (0) { \
|
||||||
MSVC_PRAGMA(warning(suppress:26444)) \
|
MSVC_PRAGMA(warning(suppress:26444)) \
|
||||||
[=]() { \
|
[=]() { \
|
||||||
log::DummyStream x; \
|
log::DummyStream x; \
|
||||||
x << (level) << __VA_ARGS__; \
|
x << (level) << __VA_ARGS__; \
|
||||||
}; \
|
}; \
|
||||||
} \
|
}
|
||||||
} while (0)
|
#endif
|
||||||
|
|
||||||
#ifdef P2POOL_LOG_DISABLE
|
#ifdef P2POOL_LOG_DISABLE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user