Skip to content

Compiler warnings in Arduino IDE for v2.0.0 #1484

@zfields

Description

@zfields

Describe the bug
Compiler warnings are generated when "Compiler warnings: All" is enabled.

In file included from /home/zak/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_adc.c:35:
/home/zak/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_adc.c: In function 'LL_ADC_CommonDeInit':
/home/zak/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_adc.c:310:53: warning: unused parameter 'ADCxy_COMMON' [-Wunused-parameter]
  310 | ErrorStatus LL_ADC_CommonDeInit(ADC_Common_TypeDef *ADCxy_COMMON)
      |                                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~

In file included from /home/zak/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/libraries/SrcWrapper/src/LL/stm32yyxx_ll_rng.c:23:
/home/zak/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_rng.c: In function 'LL_RNG_DeInit':
/home/zak/.arduino15/packages/STMicroelectronics/hardware/stm32/2.0.0/system/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_rng.c:87:40: warning: unused parameter 'RNGx' [-Wunused-parameter]
   87 | ErrorStatus LL_RNG_DeInit(RNG_TypeDef *RNGx)
      |                           ~~~~~~~~~~~~~^~~~

To Reproduce
Observed when using the standard Servo.h library.

Steps to reproduce the behavior:

  1. Select an example sketch from the Servo library
  2. Select "Compiler warnings: All" from the Arduino IDE preferences window.
  3. Attempt to compile the selected example
  4. See warnings

Expected behavior
No warnings should be generated from the board support library.

Screenshots
image

Desktop (please complete the following information):

  • OS: Pop_OS! 20.04
  • Arduino IDE version: v1.8.13
  • STM32 core version: v2.0.0
  • Upload method: N/A

Board (please complete the following information):

  • Name: Generic STM32L4 series
  • Hardware Revision:
  • Extra hardware used if any:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions