Skip to content

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

Open
serpedon wants to merge 2 commits intosui77:masterfrom
serpedon:master
Open

Solved warnings so that compilation with g++ -Werror=conversion and -Werror=switch-default is possible.#282
serpedon wants to merge 2 commits intosui77:masterfrom
serpedon:master

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