From 4f9bff583b0e119243a0ebf254e1a3bb6f55714d Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Mon, 17 Aug 2020 06:08:18 +0000 Subject: Disable warnings C4146 and C4305 (last one for 32-bit only) on Microsoft compilers. Tcl already does this, but this was never taken over by Tk --- win/tkWinPort.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win/tkWinPort.h b/win/tkWinPort.h index 9829af5..1ef90ff 100644 --- a/win/tkWinPort.h +++ b/win/tkWinPort.h @@ -91,11 +91,15 @@ * See ticket [916c1095438eae56]: GetVersionExW triggers warnings */ #if defined(_MSC_VER) +# pragma warning(disable:4146) # pragma warning(disable:4267) # pragma warning(disable:4244) # pragma warning(disable:4311) # pragma warning(disable:4312) # pragma warning(disable:4996) +#if !defined(_WIN64) +# pragma warning(disable:4305) +#endif #endif /* -- cgit v0.12