aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/cond.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5b9b50c..afe33bf 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/cond.c b/gas/cond.c
index fa5f092..2649976 100644
--- a/gas/cond.c
+++ b/gas/cond.c
@@ -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;