diff options
| author | Paul Eggert | 2024-05-04 10:08:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2024-05-11 18:46:27 -0700 |
| commit | 99a5c75f3b0916affdc8ea4a25d4bc87e67bca88 (patch) | |
| tree | 5839ee36d6cef64fc2e21224f56a60c568acdc54 /lib-src | |
| parent | 7ae091d933b03d0a1e1e0b39a949c2811c4c3618 (diff) | |
| download | emacs-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 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 2 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 84dfa527e98..03bc55de03d 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -705,7 +705,7 @@ and optionally Prolog-like definitions (first rule for a predicate or \ | |||
| 705 | function).\n\ | 705 | function).\n\ |
| 706 | To enable this behavior, run etags using --declarations."; | 706 | To enable this behavior, run etags using --declarations."; |
| 707 | static bool with_mercury_definitions = false; | 707 | static bool with_mercury_definitions = false; |
| 708 | float mercury_heuristics_ratio = MERCURY_HEURISTICS_RATIO; | 708 | static float mercury_heuristics_ratio = MERCURY_HEURISTICS_RATIO; |
| 709 | 709 | ||
| 710 | static const char *Objc_suffixes [] = | 710 | static const char *Objc_suffixes [] = |
| 711 | { "lm", /* Objective lex file */ | 711 | { "lm", /* Objective lex file */ |
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index ac4f320f9a5..ee589e03397 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -660,11 +660,11 @@ close_emacs_globals (ptrdiff_t num_symbols) | |||
| 660 | printf (("};\n" | 660 | printf (("};\n" |
| 661 | "extern struct emacs_globals globals;\n" | 661 | "extern struct emacs_globals globals;\n" |
| 662 | "\n" | 662 | "\n" |
| 663 | "#ifndef DEFINE_SYMBOLS\n" | 663 | "extern struct Lisp_Symbol lispsym[%td];\n" |
| 664 | "extern\n" | 664 | "#ifdef DEFINE_SYMBOLS\n" |
| 665 | "#endif\n" | 665 | "struct Lisp_Symbol lispsym[%td];\n" |
| 666 | "struct Lisp_Symbol lispsym[%td];\n"), | 666 | "#endif\n"), |
| 667 | num_symbols); | 667 | num_symbols, num_symbols); |
| 668 | } | 668 | } |
| 669 | 669 | ||
| 670 | static void | 670 | static void |