Explorar o código

Auto-update winreg to v6.3.1 (#5637)

* Update winreg to v6.3.1

* fix may_unused

---------

Co-authored-by: star9029 <[email protected]>
ruki hai 11 meses
pai
achega
f8d712f85d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/w/winreg/xmake.lua

+ 4 - 0
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)