Rebased ref, commits from common ancestor:
commit f332d017d0c712b6f8659b10e9e98df93f8732b2
Author:     Thorsten Behrens <[email protected]>
AuthorDate: Tue Jan 21 17:26:59 2025 +0100
Commit:     Thorsten Behrens <[email protected]>
CommitDate: Tue Jan 21 18:35:58 2025 +0100

    libtommath: fix -Werror breakage
    
    for bn_s_mp_rand_platform.c:
      ../8.1/include/shared\minwindef.h(218): error C2220: warning treated as 
error - no 'object' file generated
      ../8.1/include/shared\minwindef.h(218): warning C4255: 'FARPROC': no 
function prototype given: converting '()' to '(void)'
      ../8.1/include/shared\minwindef.h(219): warning C4255: 'NEARPROC': no 
function prototype given: converting '()' to '(void)'
      ../8.1/include/shared\minwindef.h(220): warning C4255: 'PROC': no 
function prototype given: converting '()' to '(void)'
    
    Change-Id: I5bbc0127acd722fd8244ab60b12296d7be23507d

diff --git a/external/libtommath/UnpackedTarball_libtommath.mk 
b/external/libtommath/UnpackedTarball_libtommath.mk
index 8961a46162c5..4f5490232d21 100644
--- a/external/libtommath/UnpackedTarball_libtommath.mk
+++ b/external/libtommath/UnpackedTarball_libtommath.mk
@@ -14,6 +14,7 @@ $(eval $(call 
gb_UnpackedTarball_set_tarball,libtommath,$(LIBTOMMATH_TARBALL)))
 $(eval $(call gb_UnpackedTarball_set_patchlevel,libtommath,0))
 
 $(eval $(call gb_UnpackedTarball_add_patches,libtommath,\
+       external/libtommath/no-werror.patch \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/libtommath/no-werror.patch 
b/external/libtommath/no-werror.patch
new file mode 100644
index 000000000000..023219a9bfdc
--- /dev/null
+++ b/external/libtommath/no-werror.patch
@@ -0,0 +1,12 @@
+gidiff -ur libtommath.org/makefile.msvc libtommath/makefile.msvc
+--- makefile.msvc      2025-01-21 18:20:58.440687556 +0100
++++ makefile.msvc      2025-01-21 18:22:04.832057849 +0100
+@@ -14,7 +14,7 @@
+ CFLAGS    = /Ox
+ 
+ #Compilation flags
+-LTM_CFLAGS  = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS 
/D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0 
/Wall /wd4146 /wd4127 /wd4668 /wd4710 /wd4711 /wd4820 /wd5045 /WX $(CFLAGS)
++LTM_CFLAGS  = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS 
/D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0 
/Wall /wd4146 /wd4127 /wd4668 /wd4710 /wd4711 /wd4820 /wd5045 $(CFLAGS)
+ LTM_LDFLAGS = advapi32.lib
+ 
+ #Libraries to be created (this makefile builds only static libraries)

Reply via email to