git: 9front

Download patch

ref: f2456c833d9c863c48a1f3480901910bec3408ea
parent: ac8cbb876567435e13d43e14639a3bbe854df3f6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 18 20:56:48 EST 2024

libmp/convtest: fix format string type warning uint -> %ud and remove unused variables

--- a/sys/src/libmp/test/convtest.c
+++ b/sys/src/libmp/test/convtest.c
@@ -38,10 +38,7 @@
 _name(void) \
 { \
 	mpint *m, *r; \
-	int i, sign, mag; \
-	_type v; \
-	int fail; \
-	 \
+	int i, sign, mag, fail; \
 	fail = 0; \
 	m = mpnew(0); \
 	r = mpnew(0); \
@@ -98,7 +95,7 @@
 
 XTOMP(test_uitomp, uint, uitomp)
 	if(mag >= 32 || sign < 0) continue;
-XTOMP_END(uitomp, uint, "%lld")
+XTOMP_END(uitomp, uint, "%ud")
 
 XTOMP(test_vtomp, vlong, vtomp)
 	if(mag >= 63) continue;
--