Skip to content

Warning fixes #177

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

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

Conversation

mrafique1
Copy link

I have fixed all the warnings that show up during colcon build.

anubhav-dogra and others added 2 commits June 13, 2025 12:26
1. Fixed warning realted to zero-iniliazation of first member by repacing with brace-iniliazation i.e. valid for C++ 11 onwards.
2. There is an empty for loop for no apperent reason. Nevetheless added a prefix [[maybe_unused]] to avoid warning.
3. Added constexpr in the declaration of MAX_SAFE_STACK used to define constant length array but C++ thinks its variable length array without MAX_SAFE_STACK being constexpr.
4. The function type2bytes of return type size_t had no return outside if confition, added a return 0 at the end of the function.
5. Not all fields were being initialized for a vector syncs_ of type ec_sync_info_t. Added all fields.
6. Avoided narrowing conversions from 64-bit size_t to 32-bit unsigned int, by explicitly casting.
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.

3 participants