From a8616d0366d3b0f77cdb9e68f2a8142b5a4c28e1 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 21 Jun 2020 11:50:30 -0500 Subject: [PATCH] Avoid readline.h -Wstrict-prototype induced failures On some platforms -Wstrict-prototype is now the default, and readline includes prototypes like "int foo()" rather than "int foo(void)", so for now, just suppress those warnings for the readline includes. Signed-off-by: Rob Browning --- lib/bup/_helpers.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index 009c96e..b2eb781 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -52,8 +52,11 @@ #endif #ifdef BUP_HAVE_READLINE -#include -#include +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wstrict-prototypes" +# include +# include +# pragma GCC diagnostic pop #endif #include "bupsplit.h" -- 2.39.2