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

Fix compiler warnings #1118

Merged
merged 4 commits into from
Aug 8, 2018
Merged

Fix compiler warnings #1118

merged 4 commits into from
Aug 8, 2018

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Aug 8, 2018

Follow-up to the #1101 (including it here to check for warnings)

  • basesensor and emonsensor now force to implement methods that return some specific values. voids are optional, keeping them how they are.
  • fix signed/unsigned values comparison in some methods
  • pgm_read_dword is using reinterpret_cast<uint32_t>. conform variable type
  • calculateFactors last variable was not initialized. plus, initial values are all 1 anyways.
  • travis02/03 would show useless 'unused-variable' warnings about btnDelay. just adding button definition to use it at least once.

edit: 02/03 have warnings about 'decimals' being unused. this is something from 'sensors' merge. Merged with 'dev'.

Add button definitions to the travis02 and travis03
IR_BUTTON should be uint32_t to properly work with new macro
eepromRotate return value is not used
@xoseperez xoseperez merged commit 4fa1c9d into xoseperez:dev Aug 8, 2018
@mcspr mcspr deleted the 1101-warnings branch September 21, 2018 20:14
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