From 9c1490843a0cda6caed810aeaded77858d7d2089 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 2 Sep 2021 12:20:56 +0200 Subject: [PATCH] build: ignore prototype warnings from readline Readline contains some truly ancient cruft. Signed-off-by: David Lamparter --- vtysh/vtysh.c | 4 ++++ vtysh/vtysh_main.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index b47cca76f5..b74360c75f 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -26,8 +26,12 @@ #include #include +/* readline carries some ancient definitions around */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-prototypes" #include #include +#pragma GCC diagnostic pop #include #include diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 20be81b901..76956574cc 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -27,8 +27,12 @@ #include #include +/* readline carries some ancient definitions around */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-prototypes" #include #include +#pragma GCC diagnostic pop /* * The append_history function only appears in newer versions -- 2.39.5