]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
factor: port to strict C
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Sep 2025 19:25:36 +0000 (12:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Sep 2025 19:25:59 +0000 (12:25 -0700)
Problem found with Oracle Developer Studio 12.6.
* src/factor.c (factor): Don’t return f() when f returns void.

src/factor.c

index b3af25b5f16f913afd4f5271ad639b545df8a7f3..534490e9b2a32862a07170940de12e66e449e27e 100644 (file)
@@ -1599,7 +1599,7 @@ factor_up (struct factors *factors, mp_limb_t t1, mp_limb_t t0,
 static void
 factor (struct factors *factors, mp_limb_t t1, mp_limb_t t0)
 {
-  return factor_up (factors, t1, t0, 0);
+  factor_up (factors, t1, t0, 0);
 }
 
 /* Return the prime factors of T.  */