# UnrealEngine failed to build due to error C4800: Implicit conversion from 'int32' to bool. Possible information loss on x64 with MSVC

**URL:** <https://forums.unrealengine.com/t/unrealengine-failed-to-build-due-to-error-c4800-implicit-conversion-from-int32-to-bool-possible-information-loss-on-x64-with-msvc/444702>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 6, 2019, 1:25pm UTC](https://forums.unrealengine.com/t/unrealengine-failed-to-build-due-to-error-c4800-implicit-conversion-from-int32-to-bool-possible-information-loss-on-x64-with-msvc/444702 "2019-03-06T13:25:38Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![chris-gong](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chris-gong/32/1106462_2.png) [@chris-gong](https://forums.unrealengine.com/u/chris-gong)\
**Post date:** [April 22, 2019, 4:31pm UTC](https://forums.unrealengine.com/t/unrealengine-failed-to-build-due-to-error-c4800-implicit-conversion-from-int32-to-bool-possible-information-loss-on-x64-with-msvc/444702/9 "2019-04-22T16:31:07Z")

</div>

I’m going to post Sarlack’s comment as an answer because I’m sure that is the correct answer. Essentially, you have to suppress these compiler warnings by going into the `VCToolChain.cs` file located at the file path, `Engine\Source\Programs\UnrealBuildTool\Platform\Windows`. And after line 484, just add these two lines,

`Arguments.Add("/wd4800");`

`Arguments.Add("/wd5038");`

c4800 is the code for the compiler warning,

> [Implicit conversion from ‘type’ to bool. Possible information loss](https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4800?view=vs-2019)

c5038 is the code for the compiler warning,

> [data member ‘member1’ will be initialized after data member ‘member2’ data member ‘member’ will be initialized after base class ‘base\_class’](https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5038?view=vs-2019)

**UPDATE**

This will be resolved in 4.22.1. [https://github.com/EpicGames/UnrealEngine/pull/5752](https://github.com/EpicGames/UnrealEngine/pull/5752)

---

_[View the full topic](https://forums.unrealengine.com/t/unrealengine-failed-to-build-due-to-error-c4800-implicit-conversion-from-int32-to-bool-possible-information-loss-on-x64-with-msvc/444702)._
