Skip to content

IWYU: guard stdint.h in fips_shared_support.c#3027

Merged
justsmth merged 1 commit intoaws:mainfrom
skmcgrail:fixes
Mar 6, 2026
Merged

IWYU: guard stdint.h in fips_shared_support.c#3027
justsmth merged 1 commit intoaws:mainfrom
skmcgrail:fixes

Conversation

@skmcgrail
Copy link
Copy Markdown
Member

Description of changes:

Did a manual run with include-what-you-use which reported that
#include <stdint.h> was included always in crypto/fipsmodule/fips_shared_support.c even though it was only needed in when -DFIPS=1 and -DBUILD_SHARED_LIBS=1 are enabled. This moves the include into the guarded block where it is actually needed.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.33%. Comparing base (0628190) to head (52da7ae).
⚠️ Report is 65 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3027      +/-   ##
==========================================
- Coverage   78.35%   78.33%   -0.02%     
==========================================
  Files         689      689              
  Lines      121010   121010              
  Branches    16992    16993       +1     
==========================================
- Hits        94813    94799      -14     
- Misses      25302    25316      +14     
  Partials      895      895              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@justsmth justsmth merged commit 8059c5d into aws:main Mar 6, 2026
545 of 550 checks passed
WillChilds-Klein pushed a commit to WillChilds-Klein/aws-lc that referenced this pull request Mar 11, 2026
### Description of changes:
Did a manual run with
[include-what-you-use](https://include-what-you-use.org/) which reported
that
`#include <stdint.h>` was included always in
`crypto/fipsmodule/fips_shared_support.c` even though it was only needed
in when `-DFIPS=1` and `-DBUILD_SHARED_LIBS=1` are enabled. This moves
the include into the guarded block where it is actually needed.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
nebeid pushed a commit to nebeid/aws-lc that referenced this pull request Mar 23, 2026
### Description of changes:
Did a manual run with
[include-what-you-use](https://include-what-you-use.org/) which reported
that
`#include <stdint.h>` was included always in
`crypto/fipsmodule/fips_shared_support.c` even though it was only needed
in when `-DFIPS=1` and `-DBUILD_SHARED_LIBS=1` are enabled. This moves
the include into the guarded block where it is actually needed.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
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.

4 participants