diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-10-12 09:16:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-10-12 09:19:44 -0700 |
commit | eb17d6f575de81dbbc113e474d28db0396c12714 (patch) | |
tree | 3bb16bd4385dc247018e09b1048de46e7535dd76 /src/keyboard.c | |
parent | 40c426a150c5d885d8a2509358831c9bb1e1c6ad (diff) | |
download | emacs-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.c | 5 |
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. */ |