diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2025-06-01 12:05:23 +0300 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2025-06-01 12:05:23 +0300 |
| commit | f77c8c7d45c0efa12bea148778772b557de18b95 (patch) | |
| tree | 52443c586a7f26687f8905612b09bda62d37d5b3 /nt | |
| parent | c3d9581f84107c2e137c71bb8fbf386bc20c944c (diff) | |
; Avoid compiler warnings in MinGW builds
* src/w32proc.c (child_proc_count, child_procs)
(Vw32_valid_locale_ids, Vw32_valid_codepages): Declare 'static'.
* src/w32inevt.c (faked_key): Declare.
* src/w32heap.c (data_region_base, data_region_end, heap): Declare.
* src/w32console.c (keyboard_handle, current_tty, cost): Declare.
* src/w32.c: Declare function pointers 'static'.
(excptr, excprec, ctxrec, g_b_init_compare_string_w)
(g_b_init_debug_break_process, LookupAccountSid_Name, dir_static)
(winsock_lib, _wsa_errlist): Declare.
* src/w32uniscribe.c: Declare function pointers 'static'.
(uniscribe_available, harfbuzz_available): Declare.
* src/w32term.c: Declare function pointers 'static'.
(vertical_scroll_bar_min_handle, horizontal_scroll_bar_min_handle)
(vertical_scroll_bar_top_border)
(vertical_scroll_bar_bottom_border)
(horizontal_scroll_bar_left_border)
(horizontal_scroll_bar_right_border, last_scroll_bar_drag_pos):
Declare 'static'.
* src/w32xfns.c (input_available, interrupt_handle, lpHead)
(lpTail, nQueue): Declare.
* src/w32menu.c: Declare function pointers 'static'.
* src/w32term.h (w32_frame_parm_handlers): Declare.
* src/w32fns.c: Declare function pointers 'static'.
(w32_darkmode, w32_color_map, deferred_msg_head, tip_frame)
(tip_timer, tip_last_string, tip_last_frame, tip_last_parms):
* src/lisp.h (daemon_type): Declare for WINDOWSNT as well.
* nt/cmdproxy.c (escape_char, child, interactive): Declare 'static'.
(Bug#78193)
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/cmdproxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nt/cmdproxy.c b/nt/cmdproxy.c index c522e8e70b0..8f4333e6139 100644 --- a/nt/cmdproxy.c +++ b/nt/cmdproxy.c @@ -159,7 +159,7 @@ skip_nonspace (const char *str) /* This value is never changed by the code. We keep the code that supports also the value of '"', but let's allow the compiler to optimize it out, until someone actually uses that. */ -const int escape_char = '\\'; +static const int escape_char = '\\'; /* Get next token from input, advancing pointer. */ static int @@ -509,8 +509,8 @@ setup_argv (void) termination when interrupted. At the moment, only one child process can be running at any one time. */ -PROCESS_INFORMATION child; -int interactive = TRUE; +static PROCESS_INFORMATION child; +static int interactive = TRUE; BOOL console_event_handler (DWORD); |
