diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-04-30 17:17:11 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-04-30 17:17:54 -0700 |
commit | 65ac27783a959a8339c2aab0f1e54d9b508a1f1f (patch) | |
tree | 5bc4b320aa5cb50203a68e2c589279d8d5b8ea8f /lib-src | |
parent | 4b10800b59eadd532e74a49a35bc26e0e948b231 (diff) | |
download | emacs-65ac27783a959a8339c2aab0f1e54d9b508a1f1f.tar.gz |
Port --enable-gcc-warnings to GCC 8
Backport from master.
* lib-src/emacsclient.c (fail):
Do not dereference a null pointer.
* src/frame.c (delete_frame):
Add a decl with UNINIT to work around GCC bug 85563.
* src/menu.h (finish_menu_items):
Do not use attribute const.
* src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/emacsclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 574bec850fa..b139b2fe3f6 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -700,7 +700,7 @@ fail (void) { size_t extra_args_size = (main_argc - optind + 1) * sizeof (char *); size_t new_argv_size = extra_args_size; - char **new_argv = NULL; + char **new_argv = xmalloc (new_argv_size); char *s = xstrdup (alternate_editor); unsigned toks = 0; |