Skip to content

SPI: fix annoying unused variables warnings#653

Merged
stevstrong merged 2 commits intorogerclarkmelbourne:masterfrom
tpruvot:spi_warnings
Sep 14, 2019
Merged

SPI: fix annoying unused variables warnings#653
stevstrong merged 2 commits intorogerclarkmelbourne:masterfrom
tpruvot:spi_warnings

Conversation

@tpruvot
Copy link
Contributor

@tpruvot tpruvot commented Jul 28, 2019

  • use const for ff variable to avoid unused variable on each SPI.h include
  • move the spi_this refs where its used...
  • and also the 3 others ones :

STM32F1\libraries\SPI\src\SPI.cpp:784:12
warning: enumeration value 'RCC_AHB' not handled in switch [-Wswitch]

STM32F1\libraries\SPI\src\SPI.cpp:392:5:
warning: this 'while' clause does not guard... [-Wmisleading-indentation]

Sample use : https://travis-ci.org/MarlinFirmware/Marlin/jobs/564740480

- use const for ff variable to avoid unused variable on each SPI.h include
- move the spi_this refs where its used...
- and also the 3 others ones :

STM32F1\libraries\SPI\src\SPI.cpp:784:12
  warning: enumeration value 'RCC_AHB' not handled in switch [-Wswitch]

STM32F1\libraries\SPI\src\SPI.cpp:392:5:
  warning: this 'while' clause does not guard... [-Wmisleading-indentation]

Sample use : https://travis-ci.org/MarlinFirmware/Marlin/jobs/564740480
@stevstrong stevstrong merged commit a4007f5 into rogerclarkmelbourne:master Sep 14, 2019
@stevstrong
Copy link
Collaborator

Seems good, so I merged this.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments