Skip to content

Commit

Permalink
Pragma to silence Visual Studio conversion warnings
Browse files Browse the repository at this point in the history
There are several cases of conversion from size_t to int that we cannot fix as
we use system library functions.
  • Loading branch information
tautschnig committed Jun 20, 2018
1 parent c75dc48 commit 3e14fe5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/pragma_wconversion.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#if defined __clang__
#elif defined __GNUC__
#elif defined _MSC_VER
#pragma warning(disable:4267)
#pragma warning(disable:4244)
#endif

0 comments on commit 3e14fe5

Please sign in to comment.