aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2024-05-04 10:08:48 -0700
committerPaul Eggert2024-05-11 18:46:27 -0700
commit99a5c75f3b0916affdc8ea4a25d4bc87e67bca88 (patch)
tree5839ee36d6cef64fc2e21224f56a60c568acdc54 /src/alloc.c
parent7ae091d933b03d0a1e1e0b39a949c2811c4c3618 (diff)
downloademacs-99a5c75f3b0916affdc8ea4a25d4bc87e67bca88.tar.gz
emacs-99a5c75f3b0916affdc8ea4a25d4bc87e67bca88.zip
Pacify gcc -Wmissing-variable-declarations
This is a new warning diagnostic in GCC 14. * lib-src/etags.c (mercury_heuristics_ratio): * src/pgtkselect.c, src/xselect.c (selection_request_stack): * src/xselect.c (outstanding_transfers): * src/xterm.c (pending_selection_requests) (x_dnd_waiting_for_motif_finish_display): Now static. * lib-src/make-docfile.c (close_emacs_globals): Arrange for lispsym to be declared with extern first, when compiling lread.c. * src/alloc.c (gdb_make_enums_visible) [__GNUC__]: * src/emacs.c (RCS_Id): * src/keyboard.c (stop_character): * src/print.c (print_output_debug_flag): Now declared with extern first. * src/lisp.h (DEFINE_GDB_SYMBOL_BEGIN) [MAIN_PROGRAM]: Arrange for ID to be declared extern first. * src/lisp.h (garbage_collection_inhibited): * src/xterm.h (x_frame_parm_handlers): Declare here, so that its interface is properly checked. Other decls removed.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 4226cb1d1a0..28e32554472 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -8338,7 +8338,7 @@ enum defined_HAVE_PGTK { defined_HAVE_PGTK = false };
8338 then xbacktrace could fail. Similarly for the other enums and 8338 then xbacktrace could fail. Similarly for the other enums and
8339 their values. Some non-GCC compilers don't like these constructs. */ 8339 their values. Some non-GCC compilers don't like these constructs. */
8340#ifdef __GNUC__ 8340#ifdef __GNUC__
8341union 8341extern union enums_for_gdb
8342{ 8342{
8343 enum CHARTAB_SIZE_BITS CHARTAB_SIZE_BITS; 8343 enum CHARTAB_SIZE_BITS CHARTAB_SIZE_BITS;
8344 enum char_table_specials char_table_specials; 8344 enum char_table_specials char_table_specials;
@@ -8353,5 +8353,6 @@ union
8353 enum pvec_type pvec_type; 8353 enum pvec_type pvec_type;
8354 enum defined_HAVE_X_WINDOWS defined_HAVE_X_WINDOWS; 8354 enum defined_HAVE_X_WINDOWS defined_HAVE_X_WINDOWS;
8355 enum defined_HAVE_PGTK defined_HAVE_PGTK; 8355 enum defined_HAVE_PGTK defined_HAVE_PGTK;
8356} const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0}; 8356} const gdb_make_enums_visible;
8357union enums_for_gdb const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0};
8357#endif /* __GNUC__ */ 8358#endif /* __GNUC__ */