From eb17d6f575de81dbbc113e474d28db0396c12714 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 12 Oct 2016 09:16:31 -0700 Subject: Port --enable-gcc-warnings to GCC 6.2.1 Backport from master. * src/conf_post.h (GNUC_PREREQ): New macro. * src/keyboard.c: Use it to work around GCC bug 54561. * src/process.c (would_block): New function. (server_accept_connection, wait_reading_process_output, send_process): Use it. --- src/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/keyboard.c') diff --git a/src/keyboard.c b/src/keyboard.c index 918424630f3..f24d86e8833 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -70,6 +70,11 @@ along with GNU Emacs. If not, see . */ #include TERM_HEADER #endif /* HAVE_WINDOW_SYSTEM */ +/* Work around GCC bug 54561. */ +#if GNUC_PREREQ (4, 3, 0) +# pragma GCC diagnostic ignored "-Wclobbered" +#endif + /* Variables for blockinput.h: */ /* Positive if interrupt input is blocked right now. */ -- cgit v1.2.3