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 with optimizations enabled #1218

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

Conversation

tony-josi-aws
Copy link
Member

Description

This PR fixes compiler warnings that are generated when compiled with optimizations enabled in GCC and adds CI build checks with optimization settings on.

Thanks, @StefanBalt, for reporting this issue in #1217.

Test Steps

Tested with DNS

Checklist:

  • I have tested my changes. No regression in existing tests.
  • [ ] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

#1217

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws requested a review from a team as a code owner January 22, 2025 10:02
@archigup
Copy link
Member

archigup commented Jan 22, 2025

This will create warnings on compilers that always warn on strcpy.

Do we have Clang in CI?

If it doesnt warn on the compilers we we support, should be fine.

@StefanBalt
Copy link
Contributor

This will create warnings on compilers that always warn on strcpy.

@archigup do you think memcpy() would be the better choice?

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