Avoid compilation warnings in 'genflags' program.
diff --git a/ChangeLog b/ChangeLog
index bdd8249..925f61c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-03  Bruno Haible  <bruno@clisp.org>
+
+	Avoid compilation warnings in 'genflags' program.
+	* lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
+
 2016-12-02  Bruno Haible  <bruno@clisp.org>
 
 	* relocatable.c: Update from gnulib.
diff --git a/lib/genflags.c b/lib/genflags.c
index 1f30129..8724c68 100644
--- a/lib/genflags.c
+++ b/lib/genflags.c
@@ -22,6 +22,11 @@
 #include <stdlib.h>
 #include <string.h>
 
+/* Avoid lots of warnings from "gcc -Wall". */
+#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4
+# pragma GCC diagnostic ignored "-Wunused-function"
+#endif
+
 /* Consider all encodings, including the system dependent ones. */
 #define USE_AIX
 #define USE_OSF1