Skip to content

Commit 18b3c8f

Browse files
committed
Suppress false-positive warning in WIL
1 parent e154391 commit 18b3c8f

File tree

2 files changed

+8
-0
lines changed
  • IExplorerCommand_CppWinRT
  • IExplorerCommand_WRL

2 files changed

+8
-0
lines changed

IExplorerCommand_CppWinRT/pch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
#include <winrt/Windows.Foundation.Collections.h>
2222

2323
// Windows Implementation Libraries (WIL)
24+
#pragma warning(push)
25+
// C28182: Dereferencing NULL pointer (https://github.com/microsoft/wil/issues/610)
26+
#pragma warning(disable: 28182)
2427
#include <wil/stl.h>
2528
#include <wil/win32_helpers.h>
29+
#pragma warning(pop)
2630

2731
#endif //PCH_H

IExplorerCommand_WRL/pch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
#pragma comment(lib, "runtimeobject.lib")
2525

2626
// Windows Implementation Libraries (WIL)
27+
#pragma warning(push)
28+
// C28182: Dereferencing NULL pointer (https://github.com/microsoft/wil/issues/610)
29+
#pragma warning(disable: 28182)
2730
#include <wil/stl.h>
2831
#include <wil/win32_helpers.h>
32+
#pragma warning(pop)
2933

3034
#endif //PCH_H

0 commit comments

Comments
 (0)