diff --git a/Il2CppInspector.Common/Outputs/CppScaffolding.cs b/Il2CppInspector.Common/Outputs/CppScaffolding.cs index 0d31528..fdda516 100644 --- a/Il2CppInspector.Common/Outputs/CppScaffolding.cs +++ b/Il2CppInspector.Common/Outputs/CppScaffolding.cs @@ -59,6 +59,10 @@ typedef size_t uintptr_t; if (model.TargetCompiler == CppCompilerType.MSVC) writeCode("#pragma warning(disable : 4369)"); + // Stop MSVC complaining about constant truncation of enum values + if (model.TargetCompiler == CppCompilerType.MSVC) + writeCode("#pragma warning(disable : 4309)"); + // C does not support namespaces writeCode("#if !defined(_GHIDRA_) && !defined(_IDA_)"); writeCode("namespace app {");