Skip to content

Commit 2fec593

Browse files
authored
Merge pull request #351 from ldorau/Remove_disabling_the_C4996_warning_on_Windows
Remove disabling the C4996 warning on Windows
2 parents 87a2d94 + 69a4b33 commit 2fec593

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/provider/provider_os_memory.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
*/
77

8-
#ifdef _WIN32
9-
#pragma warning(push)
10-
// Disable the warning:
11-
// hwloc-win64-build-2.10.0\include\hwloc/helper.h(1266):
12-
// warning C4996: 'sscanf': This function or variable may be unsafe.
13-
// Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
14-
#pragma warning(disable : 4996)
15-
#include <hwloc.h>
16-
#pragma warning(pop)
17-
#else
18-
#include <hwloc.h>
19-
#endif
20-
218
#include <assert.h>
229
#include <errno.h>
2310
#include <hwloc.h>

0 commit comments

Comments
 (0)