Remove declaration of tui_set_var_cmd, make definition static
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 17:12:03 +0000 (12:12 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 19:29:20 +0000 (14:29 -0500)
The declaration of tui_set_var_cmd is not in sync with the definition.
Since tui_set_var_cmd is only used in the file where it's defined,
remove the declaration and make the definition static.

gdb/ChangeLog:

* tui-win.h (tui_set_var_cmd): Remove.
* tui-win.c (tui_set_var_cmd): Make static.

Change-Id: If4bddbfb573347fb7254fb6f1a940052a72f464f

gdb/ChangeLog
gdb/tui/tui-win.c
gdb/tui/tui-win.h

index 40403fb95dd736de9bf7ade0da5f647466a551c2..ad4ea44e896c43c43d562891ad7df94726822db3 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * tui-win.h (tui_set_var_cmd): Remove.
+       * tui-win.c (tui_set_var_cmd): Make static.
+
 2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
 
        * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
index c8d36c7e63719c6f9131963dd5e605dc204a7f66..f47dad80a2bc59fb67851c97f2990319cc10be11 100644 (file)
@@ -334,7 +334,8 @@ tui_get_cmd_list (void)
 
 /* The set_func hook of "set tui ..." commands that affect the window
    borders on the TUI display.  */
-void
+
+static void
 tui_set_var_cmd (const char *null_args,
                 int from_tty, struct cmd_list_element *c)
 {
index e97eb672d78b270bf83aaa9c4b006c6b72f7e901..81b7dacb1502752574485ccc21812459884db122 100644 (file)
@@ -54,7 +54,4 @@ extern void tui_update_gdb_sizes (void);
 /* Create or get the TUI command list.  */
 struct cmd_list_element **tui_get_cmd_list (void);
 
-/* Set a TUI variable.  */
-void tui_set_var_cmd (char *, int, struct cmd_list_element *);
-
 #endif /* TUI_TUI_WIN_H */
This page took 0.032123 seconds and 4 git commands to generate.