From b90d5ba0b6e068db21650ad42ec9dea22426df00 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 11 Jan 2018 09:34:58 +1030 Subject: [PATCH] gas tc-arm.c warning fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * config/tc-arm.c (aeabi_set_public_attributes): Avoid false positive "‘profile’ may be used uninitialized". --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2