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

Remove warnings when NDEBUG build option used #4196

Merged
merged 2 commits into from
Feb 5, 2018

Conversation

earlephilhower
Copy link
Collaborator

Sorry for the duplicate. Something weird with git is making it impossible for me to clean up #4066, so I'm closing that one and opening this as a new PR. It has only the WiFiClient changes to clear up the NDEBUG build warnings, and does not touch the core (that's moved into #4187 completely).

...snip...
When building using the new NDEBUG option recently added, the assert()
macro is defined to nothing. This leaves a few variables unused in the
WiFi stack causing compiler warnings. Add in empty casts to remove
these warnings. Does not affect actual assert use when NDEBUG is not
defined.

When building using the new NDEBUG option recently added, the assert()
macro is defined to nothing. This leaves a few variables unused in the
WiFi stack causing compiler warnings. Add in empty casts to remove
these warnings. Does not affect actual assert use when NDEBUG is not
defined.
@earlephilhower
Copy link
Collaborator Author

This minor tweak was approved in the initial #4066 PR, which was split into this and another one. Going to commit this one as the warnings generated are a real PITA for cleaning up my own code with -NDEBUG.

@earlephilhower earlephilhower merged commit e38f19e into esp8266:master Feb 5, 2018
@earlephilhower earlephilhower deleted the ndebugwarnfix branch March 9, 2018 05:41
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.

1 participant