summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-10-07 10:37:25 +0200
committerJim Meyering <meyering@redhat.com>2012-10-07 10:41:39 +0200
commit231e40a6ba29b892daca1e4a2e464c315874e155 (patch)
tree489a0fd51bbefcf668ea2d7bcb6f83b2f76b20c3
parentf947735d3c4036703e03bf6970784430db1355f7 (diff)
downloadcoreutils-231e40a6ba29b892daca1e4a2e464c315874e155.tar.xz
maint: avoid warning from gcc's -Wunused-macros
On some systems, -Wunused-macros would warn about two macros: src/factor.c:148:0: warning: macro "__clz_tab" is not used src/factor.c:126:0: warning: macro "UHWtype" is not used * src/factor.c: Add a use to placate gcc.
-rw-r--r--src/factor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/factor.c b/src/factor.c
index 1ca581227..5bfbfdcd4 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -173,6 +173,12 @@ const unsigned char factor_clz_tab[129] =
#endif
+#if !defined __clz_tab && !defined UHWtype
+/* Without this seemingly useless conditional, gcc -Wunused-macros
+ warns that each of the two tested macros is unused on Fedora 18.
+ FIXME: this is just an ugly band-aid. Fix it properly. */
+#endif
+
enum alg_type { ALG_POLLARD_RHO = 1, ALG_SQUFOF = 2 };
static enum alg_type alg;