gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 31 Jul 2012 06:16:09 +0000 (06:16 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 31 Jul 2012 06:16:09 +0000 (06:16 +0000)
* go32-nat.c: Declare _initialize_go32_nat.
* ser-go32.c: Declare _initialize_ser_dos.
* top.c (do_chdir_cleanup): Add 'static'.

gdb/ChangeLog
gdb/go32-nat.c
gdb/ser-go32.c
gdb/top.c

index 3bc3450157cc6e82ce6f7d66a3d57cbfe582c000..661a0d6baa78cacdc39b17850a0b525b789cc710 100644 (file)
@@ -1,3 +1,9 @@
+2012-07-31  Yao Qi  <yao@codesourcery.com>
+
+       * go32-nat.c: Declare _initialize_go32_nat.
+       * ser-go32.c: Declare _initialize_ser_dos.
+       * top.c (do_chdir_cleanup): Add 'static'.
+
 2012-07-30  Keith Seitz  <keiths@redhat.com>
 
        * linespec.c (linespec_lex_number): A number followed
index b8fe284026169fa810a51cc2235f7d2bdeb3d2a7..d848017c0b5031021a496ad36f9f50248a8e502d 100644 (file)
@@ -2097,6 +2097,9 @@ go32_info_dos_command (char *args, int from_tty)
   help_list (info_dos_cmdlist, "info dos ", class_info, gdb_stdout);
 }
 
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_go32_nat;
+
 void
 _initialize_go32_nat (void)
 {
index ad0119197afb691fb138016effde16747397a27c..73f69c5ec4f3ac16ac0027b80c33271ec421f996 100644 (file)
@@ -909,6 +909,8 @@ dos_info (char *arg, int from_tty)
 #endif
 }
 
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_ser_dos;
 
 void
 _initialize_ser_dos (void)
index 061ad48f41e756cc22032490543f7a77037e8d10..213c68cab9a07501d4701682c7d4478865d52467 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -336,7 +336,7 @@ read_command_file (FILE *stream)
 void (*pre_init_ui_hook) (void);
 
 #ifdef __MSDOS__
-void
+static void
 do_chdir_cleanup (void *old_dir)
 {
   chdir (old_dir);