From: Nick Clifton Date: Tue, 28 Apr 2015 10:22:57 +0000 (+0100) Subject: Fix compile time warnings about a local variable being used before it is set. X-Git-Tag: users/hjl/linux/release/2.25.51.0.2~2^2~5^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da7119c99c41f60cb178b0b9729d9f7880f33c86;p=thirdparty%2Fbinutils-gdb.git Fix compile time warnings about a local variable being used before it is set. PR 18313 * cond.c (s_if): Stop compile time warning about stopc being used before it is set. (s_ifc): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5b9b50c389a..afe33bffd97 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2015-04-28 Nick Clifton + + 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 * 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 fa5f0923973..26499763efe 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;