Error on some type conversion warnings.

This commit is contained in:
Joachim Bauch
2016-09-19 22:51:39 +02:00
parent 89883558fe
commit de5dbce770
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ endif ()
if (NOT MSVC)
add_definitions ("-Wall")
else ()
# Show level 4 warnings.
add_definitions ("-W4")
endif ()
+4
View File
@@ -35,6 +35,10 @@
#if _MSC_VER
// Disable warning about data -> function pointer conversion
#pragma warning(disable:4055)
// C4244: conversion from 'uintptr_t' to 'DWORD', possible loss of data.
#pragma warning(error: 4244)
// C4267: conversion from 'size_t' to 'int', possible loss of data.
#pragma warning(error: 4267)
#endif
#ifndef IMAGE_SIZEOF_BASE_RELOCATION