avoid compiler warnings in remote-m32r-sdi.c
authorDoug Evans <dje@google.com>
Thu, 25 Feb 2016 17:30:22 +0000 (09:30 -0800)
committerDoug Evans <dje@google.com>
Thu, 25 Feb 2016 17:30:22 +0000 (09:30 -0800)
gdb/ChangeLog:

* remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
compiler warning.
(recv_long_data): Ditto.

gdb/ChangeLog
gdb/remote-m32r-sdi.c

index 00af3950277450e1f612c0dc4886905f6fd91920..fe3aa3627f20b6dc16f2adb6ec50f1e733efbb01 100644 (file)
@@ -1,3 +1,9 @@
+2016-02-25  Doug Evans  <dje@google.com>
+
+       * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
+       compiler warning.
+       (recv_long_data): Ditto.
+
 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
 
        * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
index c1bd858737d5f0ee4925d3e2e06af52dbcde8cf5..2d3a1ad2bcb83e3286825ecf5e52eed880029d88 100644 (file)
@@ -270,7 +270,7 @@ send_three_arg_cmd (unsigned char cmd, unsigned long arg1, unsigned long arg2,
 static unsigned char
 recv_char_data (void)
 {
-  unsigned char val;
+  unsigned char val = 0; /* -Wall */
 
   recv_data (&val, 1);
   return val;
@@ -279,7 +279,7 @@ recv_char_data (void)
 static unsigned long
 recv_long_data (void)
 {
-  unsigned long val;
+  unsigned long val = 0; /* -Wall */
 
   recv_data (&val, 4);
   return ntohl (val);
This page took 0.026201 seconds and 4 git commands to generate.