From: Rob Browning Date: Sun, 21 Jun 2020 16:50:30 +0000 (-0500) Subject: Avoid readline.h -Wstrict-prototype induced failures X-Git-Tag: 0.31~35 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=a8616d0366d3b0f77cdb9e68f2a8142b5a4c28e1;ds=sidebyside 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 --- 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"