From 58b70719bec4e20fb511749056e836635a63a553 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Tue, 29 Apr 2025 23:06:24 +0200 Subject: [PATCH] Disable conversion warnings on Win64 Those warnings aren't enabled for gcc and clang currently either, so just disable them for msvc as well. Signed-off-by: Ralph Sennhauser --- build/premake/premake5.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index 8c36dd4e4c..1efb347c42 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -281,6 +281,9 @@ function project_set_build_flags() -- use native wchar_t type (not typedef to unsigned short) nativewchar "on" + -- FIXME: conversion warnings, should add -Wconversion to gcc and clang flags as well + disablewarnings { "4267" } + else -- *nix -- exclude most non-essential build options for minimal-flags @@ -292,6 +295,7 @@ function project_set_build_flags() "-Wno-invalid-offsetof", -- offsetof on non-POD types (see comment in renderer/PatchRData.cpp) "-Wextra", + -- "-Wconversion", FIXME: should seriously consider fixing so this warning can be enabled. "-Wno-missing-field-initializers", -- (this is common in external headers we can't fix) -- add some other useful warnings that need to be enabled explicitly