summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-10-12 09:16:31 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-10-12 09:19:44 -0700
commiteb17d6f575de81dbbc113e474d28db0396c12714 (patch)
tree3bb16bd4385dc247018e09b1048de46e7535dd76 /src/keyboard.c
parent40c426a150c5d885d8a2509358831c9bb1e1c6ad (diff)
downloademacs-eb17d6f575de81dbbc113e474d28db0396c12714.tar.gz
emacs-eb17d6f575de81dbbc113e474d28db0396c12714.tar.bz2
emacs-eb17d6f575de81dbbc113e474d28db0396c12714.zip
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.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 5 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */
#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. */