Skip to content

Commit

Permalink
Updated for VS 2017 (15.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Dec 5, 2017
1 parent 09e19e1 commit 5baac81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DirectXTex/DirectXTexP.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// C4640 construction of local static object is not thread-safe

// Off by default warnings
#pragma warning(disable : 4061 4265 4365 4571 4623 4625 4626 4668 4710 4711 4746 4774 4820 4987 5026 5027 5031 5032)
#pragma warning(disable : 4061 4265 4365 4571 4623 4625 4626 4668 4710 4711 4746 4774 4820 4987 5026 5027 5031 5032 5039)
// C4061 enumerator 'X' in switch of enum 'X' is not explicitly handled by a case label
// C4265 class has virtual functions, but destructor is not virtual
// C4365 signed/unsigned mismatch
Expand All @@ -42,6 +42,7 @@
// C5026 move constructor was implicitly defined as deleted
// C5027 move assignment operator was implicitly defined as deleted
// C5031/5032 push/pop mismatches in windows headers
// C5039 pointer or reference to potentially throwing function passed to extern C function under - EHc

This comment has been minimized.

Copy link
@walbourn

walbourn Dec 5, 2017

Author Member

I hit a number of false warning cases with VS 2017 (15.5 update) with this new warning. I've disabled it globally since that includes some errors inside Windows SDK headers.


// Windows 8.1 SDK related Off by default warnings
#pragma warning(disable : 4471 4917 4986 5029)
Expand Down

0 comments on commit 5baac81

Please sign in to comment.