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.
This commit is contained in:
Nick Clifton 2015-04-28 11:22:57 +01:00
parent 2631b16a57
commit da7119c99c
2 changed files with 9 additions and 2 deletions

View 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> 2015-04-27 Renlin Li <renlin.li@arm.com>
* config/tc-aarch64.c (s_aarch64_inst): Don't align code for non-text * config/tc-aarch64.c (s_aarch64_inst): Don't align code for non-text

View File

@ -128,7 +128,7 @@ s_if (int arg)
struct conditional_frame cframe; struct conditional_frame cframe;
int t; int t;
char *stop = NULL; char *stop = NULL;
char stopc; char stopc = 0;
if (flag_mri) if (flag_mri)
stop = mri_comment_field (&stopc); stop = mri_comment_field (&stopc);
@ -261,7 +261,7 @@ void
s_ifc (int arg) s_ifc (int arg)
{ {
char *stop = NULL; char *stop = NULL;
char stopc; char stopc = 0;
char *s1, *s2; char *s1, *s2;
int len1, len2; int len1, len2;
int res; int res;