Fix compile time warnings about a local variable being used before it is set.
authorNick Clifton <nickc@redhat.com>
Tue, 28 Apr 2015 10:22:57 +0000 (11:22 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 28 Apr 2015 10:22:57 +0000 (11:22 +0100)
PR 18313
* cond.c (s_if): Stop compile time warning about stopc being used
before it is set.
(s_ifc): Likewise.

gas/ChangeLog
gas/cond.c

index 5b9b50c389ad892183d9fd67b8eaaca5434968fe..afe33bffd97e97a10ecca33b010f86e1b421861e 100644 (file)
@@ -1,3 +1,10 @@
+2015-04-28  Nick Clifton  <nickc@redhat.com>
+
+       PR 18313
+       * cond.c (s_if): Stop compile time warning about stopc being used
+       before it is set.
+       (s_ifc): Likewise.
+
 2015-04-27  Renlin Li  <renlin.li@arm.com>
 
        * config/tc-aarch64.c (s_aarch64_inst): Don't align code for non-text
index fa5f0923973b6a6b8dfeb46c37a5eb12b85877da..26499763efebde2c296100a4f132ebe3c79b2c5a 100644 (file)
@@ -128,7 +128,7 @@ s_if (int arg)
   struct conditional_frame cframe;
   int t;
   char *stop = NULL;
-  char stopc;
+  char stopc = 0;
 
   if (flag_mri)
     stop = mri_comment_field (&stopc);
@@ -261,7 +261,7 @@ void
 s_ifc (int arg)
 {
   char *stop = NULL;
-  char stopc;
+  char stopc = 0;
   char *s1, *s2;
   int len1, len2;
   int res;
This page took 0.025524 seconds and 4 git commands to generate.