Skip to content

Commit 88ac4b2

Browse files
committed
Disable warning 28251: Inconsistent annotation for _BitScanForward
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 9a44668 commit 88ac4b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/utils/utils_concurrency.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@
1414

1515
#ifdef _WIN32
1616
#include <windows.h>
17-
#else
17+
18+
// Disable warning 28251: "inconsistent annotation for function" thrown in
19+
// intrin.h, as we do not want to modify this file.
20+
#pragma warning(push)
21+
#pragma warning(disable : 28251)
22+
#include <intrin.h>
23+
#pragma warning(pop)
24+
#pragma intrinsic(_BitScanForward64)
25+
26+
#else /* !_WIN32 */
27+
1828
#include <pthread.h>
1929

2030
#ifndef __cplusplus

0 commit comments

Comments
 (0)