From: Alan Modra Date: Wed, 10 Jan 2018 23:04:58 +0000 (+1030) Subject: gas tc-arm.c warning fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b90d5ba0b6e068db21650ad42ec9dea22426df00;p=binutils-gdb.git gas tc-arm.c warning fix * config/tc-arm.c (aeabi_set_public_attributes): Avoid false positive "‘profile’ may be used uninitialized". --- diff --git a/gas/ChangeLog b/gas/ChangeLog index cacaeeabc62..125d54a3fa7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2018-01-11 Alan Modra + + * config/tc-arm.c (aeabi_set_public_attributes): Avoid false + positive "‘profile’ may be used uninitialized". + 2018-01-10 Jan Beulich * testsuite/gas/i386/avx512_4fmaps.s, diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 0b81c198dbb..0e166888e1f 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -27104,7 +27104,7 @@ found: static void aeabi_set_public_attributes (void) { - char profile; + char profile = '\0'; int arch = -1; int virt_sec = 0; int fp16_optional = 0;