Skip to content

Conversation

@DanAlbert
Copy link
Member

Add -Wextra, use add_compile_options instead of target_compile_options so it affects the whole file (there's only one target here so it makes no difference, but it's safer for copying), and fix the issues:

  1. A function that took an int32_t for comparison with other unsigned types, despite the only caller passing a uint32_t that was being narrowed anyway.
  2. A bunch of unused arguments.
  3. Removed some unused code that had warnings rather than fixing it.

Add -Wextra, use add_compile_options instead of target_compile_options
so it affects the whole file (there's only one target here so it makes
no difference, but it's safer for copying), and fix the issues:

1. A function that took an int32_t for comparison with other unsigned
   types, despite the only caller passing a uint32_t that was being
   narrowed anyway.
2. A bunch of unused arguments.
3. Removed some unused code that had warnings rather than fixing it.
@DanAlbert DanAlbert requested a review from enh-google August 27, 2025 18:02
@DanAlbert DanAlbert enabled auto-merge (rebase) August 27, 2025 18:02
@DanAlbert DanAlbert merged commit a8390d7 into android:main Aug 27, 2025
2 checks passed
@DanAlbert DanAlbert deleted the werror branch August 27, 2025 19:14
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.

2 participants