Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI: fix annoying unused variables warnings #653

Merged
merged 2 commits into from
Sep 14, 2019

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