* lib/mini-gmp-gnulib.c: Similarly, ignore -Wunused-parameter, in case
people compile Gnulib code with that option.
---
ChangeLog | 2 ++
lib/mini-gmp-gnulib.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 8c3db3c465..b222535020 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
* lib/mini-gmp-gnulib.c: Ignore -Wanalyzer-write-to-const in
versions of GCC that support that option, as mini-gmp.c itself
doesn’t worry about pacifying that warning.
+ Similarly, ignore -Wunused-parameter, in case people compile
+ Gnulib code with that option.
2026-10-27 Kamila Szewczyk <[email protected]>
diff --git a/lib/mini-gmp-gnulib.c b/lib/mini-gmp-gnulib.c
index dc5f695ce4..fb8b88b4f7 100644
--- a/lib/mini-gmp-gnulib.c
+++ b/lib/mini-gmp-gnulib.c
@@ -30,6 +30,10 @@
#include "mini-gmp.h"
+#if _GL_GNUC_PREREQ (2, 8)
+# pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
+
/* Pacify GCC -Wsuggest-attribute=const, pure, malloc. */
#if _GL_GNUC_PREREQ (4, 6)
# pragma GCC diagnostic ignored "-Wsuggest-attribute=const"
--
2.56.0