mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-16 07:14:26 -04:00
Error on some type conversion warnings.
This commit is contained in:
@@ -28,6 +28,7 @@ endif ()
|
||||
if (NOT MSVC)
|
||||
add_definitions ("-Wall")
|
||||
else ()
|
||||
# Show level 4 warnings.
|
||||
add_definitions ("-W4")
|
||||
endif ()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user