From f8d712f85dc331fc40bc80125df6bdf57cb84f62 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 1 Nov 2024 18:09:48 +0800 Subject: [PATCH] Auto-update winreg to v6.3.1 (#5637) * Update winreg to v6.3.1 * fix may_unused --------- Co-authored-by: star9029 --- packages/w/winreg/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/w/winreg/xmake.lua b/packages/w/winreg/xmake.lua index b977abd16..2a701118d 100644 --- a/packages/w/winreg/xmake.lua +++ b/packages/w/winreg/xmake.lua @@ -7,11 +7,15 @@ package("winreg") add_urls("https://github.com/GiovanniDicanio/WinReg/archive/refs/tags/$(version).tar.gz", "https://github.com/GiovanniDicanio/WinReg.git") + add_versions("v6.3.1", "b92842cc37d3fe1a4d103929480045a40c39ba2efc15d7656f62e189d10d0bc4") add_versions("v6.3.0", "5a8b47c19ce705172cb1107451acbbb9fa7d8aa1e8f5356a2e682c16cf5532e9") add_versions("v6.2.0", "9dc1b287fb8c765a35791bf0deea0da81e52a969827bc2d8777f54f26ade588d") add_versions("v6.1.0", "d4118ccfd4f4edee29e0f6b3706979791ad537278e2f74818c150bb66f8fcc53") on_install("windows", "mingw", "msys", function (package) + if package:is_plat("mingw") and package:is_arch("i386") then + io.replace("WinReg/WinReg.hpp", "UNREFERENCED_PARAMETER(size);", "(void)size;", {plain = true}) + end os.cp("WinReg/WinReg.hpp", package:installdir("include/WinReg")) end)