shithub: libmujs

Download patch

ref: 6625d1ea02ffbca41bc5a58cbcac237ad563d552
parent: 7ef066a3bb95bf83e7c5be50d859e62e58fe8515
author: Robin Watts <Robin.Watts@artifex.com>
date: Thu Jun 3 08:45:04 EDT 2021

Disable const warnings in Visual Studio.

Visual Studio is overzealous (i.e. wrong) in many of its const
warnings.

--- a/jsi.h
+++ b/jsi.h
@@ -18,6 +18,7 @@
 #pragma warning(disable:4996) /* _CRT_SECURE_NO_WARNINGS */
 #pragma warning(disable:4244) /* implicit conversion from double to int */
 #pragma warning(disable:4267) /* implicit conversion of int to smaller int */
+#pragma warning(disable:4090) /* broken const warnings */
 #define inline __inline
 #if _MSC_VER < 1900 /* MSVC 2015 */
 #define snprintf jsW_snprintf