Adding protobuf lib causes comilation to fail do to warnning C4800

Hello guys and gals,

So I managed to get the protobuf libs staticaly included in my UE5.1 project but it fails to compile with C4800 “errors”. RTTI is already disabled.

No idea of how I can fix this, been googling but can’t seem to find this error in UE5, either I’m doing something wrong or I’m totally lost

Module build.cs:

Edit: Should be noted this only happens when compiling actual protobuf files.

Edit2 : “#pragma warning(disable: 4800)” doesn’t help :confused:

Edit3: It seems the “#pragma warning(disable: 4800)” does work if one is to edit the auto generated files. Though this sounds wrong in many ways. :frowning:

#pragma warning(disable: 4800) add in file map_field_inl.h