aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-06-22 09:34:12 +0100
committerNick Clifton <nickc@redhat.com>2017-06-22 09:34:12 +0100
commite7d39ed3e0ca36d0dbd6ddd4cb955aa73b0974e6 (patch)
tree3063c23a2dade79d8d7c715c63d1f8ae0aba328a /gas
parenta765d0724259ec77ab69c3dbb1cc2e16e2e038e1 (diff)
downloadgdb-e7d39ed3e0ca36d0dbd6ddd4cb955aa73b0974e6.zip
gdb-e7d39ed3e0ca36d0dbd6ddd4cb955aa73b0974e6.tar.gz
gdb-e7d39ed3e0ca36d0dbd6ddd4cb955aa73b0974e6.tar.bz2
Fix compile time warning about unused static variable.
* config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-arm.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 87eea61..93914da 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-22 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED.
+
2017-06-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/tc-arm.c (fpu_any): Defined from FPU_ANY.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 7767aa6..18d3a20 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -203,7 +203,7 @@ static const arm_feature_set arm_ext_v7 = ARM_FEATURE_CORE_LOW (ARM_EXT_V7);
static const arm_feature_set arm_ext_v7a = ARM_FEATURE_CORE_LOW (ARM_EXT_V7A);
static const arm_feature_set arm_ext_v7r = ARM_FEATURE_CORE_LOW (ARM_EXT_V7R);
#ifdef OBJ_ELF
-static const arm_feature_set arm_ext_v7m = ARM_FEATURE_CORE_LOW (ARM_EXT_V7M);
+static const arm_feature_set ATTRIBUTE_UNUSED arm_ext_v7m = ARM_FEATURE_CORE_LOW (ARM_EXT_V7M);
#endif
static const arm_feature_set arm_ext_v8 = ARM_FEATURE_CORE_LOW (ARM_EXT_V8);
static const arm_feature_set arm_ext_m =