aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2018-04-30 17:17:11 -0700
committerPaul Eggert2018-04-30 17:17:54 -0700
commit65ac27783a959a8339c2aab0f1e54d9b508a1f1f (patch)
tree5bc4b320aa5cb50203a68e2c589279d8d5b8ea8f /src
parent4b10800b59eadd532e74a49a35bc26e0e948b231 (diff)
downloademacs-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 'src')
-rw-r--r--src/frame.c1
-rw-r--r--src/menu.h2
-rw-r--r--src/regex.c3
3 files changed, 3 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c
index cee775c6fa9..0a6ca26f5d7 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1933,6 +1933,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
1933 if (f == sf) 1933 if (f == sf)
1934 { 1934 {
1935 Lisp_Object tail; 1935 Lisp_Object tail;
1936 Lisp_Object frame1 UNINIT; /* This line works around GCC bug 85563. */
1936 eassume (CONSP (Vframe_list)); 1937 eassume (CONSP (Vframe_list));
1937 1938
1938 /* Look for another visible frame on the same terminal. 1939 /* Look for another visible frame on the same terminal.
diff --git a/src/menu.h b/src/menu.h
index 4c4ac83424f..1aa53f74544 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -30,7 +30,7 @@ enum {
30}; 30};
31 31
32extern void init_menu_items (void); 32extern void init_menu_items (void);
33extern void finish_menu_items (void) ATTRIBUTE_CONST; 33extern void finish_menu_items (void);
34extern void discard_menu_items (void); 34extern void discard_menu_items (void);
35extern void save_menu_items (void); 35extern void save_menu_items (void);
36extern bool parse_single_submenu (Lisp_Object, Lisp_Object, Lisp_Object); 36extern bool parse_single_submenu (Lisp_Object, Lisp_Object, Lisp_Object);
diff --git a/src/regex.c b/src/regex.c
index e8b99f6f023..4f9df68a9fe 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -4038,8 +4038,7 @@ analyze_first (const_re_char *p, const_re_char *pend, char *fastmap,
4038 }; 4038 };
4039 /* Keep `p1' to allow the `on_failure_jump' we are jumping to 4039 /* Keep `p1' to allow the `on_failure_jump' we are jumping to
4040 to jump back to "just after here". */ 4040 to jump back to "just after here". */
4041 /* Fallthrough */ 4041 FALLTHROUGH;
4042
4043 case on_failure_jump: 4042 case on_failure_jump:
4044 case on_failure_keep_string_jump: 4043 case on_failure_keep_string_jump:
4045 case on_failure_jump_nastyloop: 4044 case on_failure_jump_nastyloop: