This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gas tc-arm.c warning fix


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b90d5ba0b6e068db21650ad42ec9dea22426df00

commit b90d5ba0b6e068db21650ad42ec9dea22426df00
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Jan 11 09:34:58 2018 +1030

    gas tc-arm.c warning fix
    
    	* config/tc-arm.c (aeabi_set_public_attributes): Avoid false
    	positive "â??profileâ?? may be used uninitialized".

Diff:
---
 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 cacaeea..125d54a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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,
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 0b81c19..0e16688 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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]