Fix compile time warning about unused static variable.
authorNick Clifton <nickc@redhat.com>
Thu, 22 Jun 2017 08:34:12 +0000 (09:34 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Jun 2017 08:34:12 +0000 (09:34 +0100)
* config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED.

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

index 87eea613b362182c56d9f7265b9ec5bcc3162495..93914da731ac6c9071bd40fa870cb2e5c4f4482a 100644 (file)
@@ -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.
index 7767aa6dddc0b39431c4ac28549b1a62954f0035..18d3a209d5f6733e75e9eafb01495e8bd90177ce 100644 (file)
@@ -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 =