Skip to content

Commit 90cb176

Browse files
author
Daniel Kroening
authored
Merge pull request #3667 from tautschnig/vs-winbase
Visual Studio 2017 warns about throwing functions passed to C functions [blocks: #2310]
2 parents c11b81c + 3bf5ad0 commit 90cb176

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

src/goto-cc/compile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Date: June 2006
5252
#ifdef _MSC_VER
5353
#pragma warning(disable:4668)
5454
// using #if/#elif on undefined macro
55+
#pragma warning(disable : 5039)
56+
// pointer or reference to potentially throwing function passed to extern C
5557
#endif
5658
#include <direct.h>
5759
#include <windows.h>

src/util/cout_message.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Author: Daniel Kroening, [email protected]
1515
#ifdef _MSC_VER
1616
#pragma warning(disable:4668)
1717
// using #if/#elif on undefined macro
18+
#pragma warning(disable : 5039)
19+
// pointer or reference to potentially throwing function passed to extern C
1820
#endif
1921
#include <windows.h>
2022
#include <fcntl.h>

src/util/file_util.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Date: January 2012
3636
#ifdef _MSC_VER
3737
#pragma warning(disable:4668)
3838
// using #if/#elif on undefined macro
39+
#pragma warning(disable : 5039)
40+
// pointer or reference to potentially throwing function passed to extern C
3941
#endif
4042
#include <io.h>
4143
#include <windows.h>

src/util/memory_info.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Author: Daniel Kroening, [email protected]
2323
#ifdef _MSC_VER
2424
#pragma warning(disable:4668)
2525
// using #if/#elif on undefined macro
26+
#pragma warning(disable : 5039)
27+
// pointer or reference to potentially throwing function passed to extern C
2628
#endif
2729
#include <windows.h>
2830
#include <psapi.h>

src/util/run.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Date: August 2012
1616
#ifdef _MSC_VER
1717
#pragma warning(disable:4668)
1818
// using #if/#elif on undefined macro
19+
#pragma warning(disable:5039)
20+
// pointer or reference to potentially throwing function passed to extern C
1921
#endif
2022
#include <process.h>
2123
#include <windows.h>

src/util/tempdir.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Author: CM Wintersteiger
1313
#ifdef _MSC_VER
1414
#pragma warning(disable:4668)
1515
// using #if/#elif on undefined macro
16+
#pragma warning(disable : 5039)
17+
// pointer or reference to potentially throwing function passed to extern C
1618
#endif
1719
#include <windows.h>
1820
#include <io.h>

src/util/tempfile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Author: Daniel Kroening
1313
#ifdef _MSC_VER
1414
#pragma warning(disable:4668)
1515
// using #if/#elif on undefined macro
16+
#pragma warning(disable : 5039)
17+
// pointer or reference to potentially throwing function passed to extern C
1618
#endif
1719
#include <process.h>
1820
#include <sys/stat.h>

src/util/unicode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Author: Daniel Kroening, [email protected]
1919
#ifdef _MSC_VER
2020
#pragma warning(disable:4668)
2121
// using #if/#elif on undefined macro
22+
#pragma warning(disable : 5039)
23+
// pointer or reference to potentially throwing function passed to extern C
2224
#endif
2325
#include <windows.h>
2426
#include <util/pragma_pop.def>

0 commit comments

Comments
 (0)