diff options
| author | Paul Eggert | 2018-04-30 17:17:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-04-30 17:17:54 -0700 |
| commit | 65ac27783a959a8339c2aab0f1e54d9b508a1f1f (patch) | |
| tree | 5bc4b320aa5cb50203a68e2c589279d8d5b8ea8f /lib-src | |
| parent | 4b10800b59eadd532e74a49a35bc26e0e948b231 (diff) | |
| download | emacs-65ac27783a959a8339c2aab0f1e54d9b508a1f1f.tar.gz emacs-65ac27783a959a8339c2aab0f1e54d9b508a1f1f.zip | |
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) | |||
| 700 | { | 700 | { |
| 701 | size_t extra_args_size = (main_argc - optind + 1) * sizeof (char *); | 701 | size_t extra_args_size = (main_argc - optind + 1) * sizeof (char *); |
| 702 | size_t new_argv_size = extra_args_size; | 702 | size_t new_argv_size = extra_args_size; |
| 703 | char **new_argv = NULL; | 703 | char **new_argv = xmalloc (new_argv_size); |
| 704 | char *s = xstrdup (alternate_editor); | 704 | char *s = xstrdup (alternate_editor); |
| 705 | unsigned toks = 0; | 705 | unsigned toks = 0; |
| 706 | 706 | ||