From: Nick Clifton Date: Thu, 22 Jun 2017 08:34:12 +0000 (+0100) Subject: Fix compile time warning about unused static variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7d39ed3e0ca36d0dbd6ddd4cb955aa73b0974e6;p=binutils-gdb.git Fix compile time warning about unused static variable. * config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 87eea613b36..93914da731a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2017-06-22 Nick Clifton + + * config/tc-arm.c (arm_ext_v7m): Add ATTRIBUTE_UNUSED. + 2017-06-21 Thomas Preud'homme * 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 7767aa6dddc..18d3a209d5f 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 =