Remove spurious va_end in vwarning
authorGary Benson <gbenson@redhat.com>
Tue, 5 Aug 2014 12:06:19 +0000 (13:06 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 5 Aug 2014 12:06:19 +0000 (13:06 +0100)
This commit removes a spurious va_end in vwarning.

gdb/
2014-08-05  Gary Benson  <gbenson@redhat.com>

* utils.c (vwarning): Remove spurious va_end.

gdb/ChangeLog
gdb/utils.c

index ea487427e5d53fb82a4c5e4398b231b329afe8aa..a8f91febb2b08a5a6b1c4189d11a289959d466e1 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-05  Gary Benson  <gbenson@redhat.com>
+
+       * utils.c (vwarning): Remove spurious va_end.
+
 2014-08-05  Alan Modra  <amodra@gmail.com>
 
        * charset.c (convert_between_encodings): Cast result of obstack_base.
index a4b59371db16d8e8679ceae91a750f81cae75a87..23055ce0cc11ae6ea2bddaeb96778cc8b57a9566 100644 (file)
@@ -529,7 +529,6 @@ vwarning (const char *string, va_list args)
        fputs_unfiltered (warning_pre_print, gdb_stderr);
       vfprintf_unfiltered (gdb_stderr, string, args);
       fprintf_unfiltered (gdb_stderr, "\n");
-      va_end (args);
     }
 }