gas tc-arm.c warning fix
authorAlan Modra <amodra@gmail.com>
Wed, 10 Jan 2018 23:04:58 +0000 (09:34 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Jan 2018 23:17:38 +0000 (09:47 +1030)
* config/tc-arm.c (aeabi_set_public_attributes): Avoid false
positive "‘profile’ may be used uninitialized".

gas/ChangeLog
gas/config/tc-arm.c

index cacaeeabc620bad6295a29aa29af99f37434a356..125d54a3fa7f787c8cab0b99632b5269248f60f6 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-11  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-arm.c (aeabi_set_public_attributes): Avoid false
+       positive "‘profile’ may be used uninitialized".
+
 2018-01-10  Jan Beulich  <jbeulich@suse.com>
 
        * testsuite/gas/i386/avx512_4fmaps.s,
index 0b81c198dbba590c07a73a398ea35d6e8f1e29f7..0e166888e1f15c02a11fee777f65457329e87fa2 100644 (file)
@@ -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;