factor: avoid compilation failure without libgmp
authorJim Meyering <meyering@redhat.com>
Sat, 25 Oct 2008 20:51:54 +0000 (22:51 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 25 Oct 2008 20:57:42 +0000 (22:57 +0200)
* src/factor.c (debug) [!HAVE_GMP]: Define.
Reported by Bob Proulx.

src/factor.c

index 8ccefd5..187143a 100644 (file)
@@ -257,6 +257,14 @@ S4:
   mpz_clear (x);
   mpz_clear (y);
 }
+
+#else
+
+static void
+debug (char const *fmt ATTRIBUTE_UNUSED, ...)
+{
+}
+
 #endif
 
 /* The maximum number of factors, including -1, for negative numbers.  */