We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8988355 commit de5dbceCopy full SHA for de5dbce
CMakeLists.txt
@@ -28,6 +28,7 @@ endif ()
28
if (NOT MSVC)
29
add_definitions ("-Wall")
30
else ()
31
+ # Show level 4 warnings.
32
add_definitions ("-W4")
33
endif ()
34
MemoryModule.c
@@ -35,6 +35,10 @@
35
#if _MSC_VER
36
// Disable warning about data -> function pointer conversion
37
#pragma warning(disable:4055)
38
+ // C4244: conversion from 'uintptr_t' to 'DWORD', possible loss of data.
39
+#pragma warning(error: 4244)
40
+// C4267: conversion from 'size_t' to 'int', possible loss of data.
41
+#pragma warning(error: 4267)
42
#endif
43
44
#ifndef IMAGE_SIZEOF_BASE_RELOCATION
0 commit comments