On Tue, Sep 15, 2020 at 03:32:40PM +0000, Vaseeharan Vinayagamoorthy wrote: > I am seeing this unused parameter 'opts' error when building for this > configuration: > Build: arm-none-linux-gnueabihf > Host: arm-none-linux-gnueabihf > Target: arm-none-linux-gnueabihf > > In function 'void arm_option_restore(gcc_options*, gcc_options*, > cl_target_option*)': > /src/gcc/gcc/config/arm/arm.c:3042:41: error: unused parameter 'opts' > [-Werror=unused-parameter] > 3042 | arm_option_restore (struct gcc_options *opts, struct gcc_options > *opts_set, > | ~~~~~~~~~~~~~~~~~~~~^~~~
Oops, sorry, don't know how this got through, fixed as obvious with the patch below: 2020-09-16 Jakub Jelinek <ja...@redhat.com> * config/arm/arm.c (arm_option_restore): Comment out opts argument name to avoid unused parameter warnings. --- gcc/config/arm/arm.c +++ gcc/config/arm/arm.c @@ -3039,8 +3039,8 @@ arm_override_options_after_change (void) /* Implement TARGET_OPTION_RESTORE. */ static void -arm_option_restore (struct gcc_options *opts, struct gcc_options *opts_set, - struct cl_target_option *ptr) +arm_option_restore (struct gcc_options */* opts */, + struct gcc_options *opts_set, struct cl_target_option *ptr) { arm_configure_build_target (&arm_active_target, ptr, opts_set, false); } Jakub