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

Solved warnings so that compilation with g++ -Werror=conversion and -Werror=switch-default is possible. #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

serpedon
Copy link

Solved warnings so that compilation with g++ -Werror=conversion and -Werror=switch-default is possible.

With these changes, compilation with g++ treating warnings as errors is possible. To my understanding, the warnings are relevant (e.g. possible integer overflow).

Note: This changes modify the external interfaces since I did not want to change "struct Protocol". This will introduce a conversion-warning for users which still use the old types in there code. But these users evidently have conversion-warnings disabled since otherwise they would not be able to compile rc-switch without these changes in the first place.

Please review if you agree with my correction suggestion.

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