Repository navigation
Fix unterminated-string-initialization warnings - #1472
Merged
Merged
Conversation
Member
|
What are you compiling it with? |
pgaskin
self-requested a review
December 5, 2025 04:11
Contributor
Author
gcc (GCC) 15.2.1 20251111 |
pgaskin
approved these changes
Dec 7, 2025
Member
|
TBH I don't like the change, as the code becomes much less readable. I think either disabling the warning or using |
When compiling cmus I get multiple warnings around unterminated string initialization. This patch fixes the warnings by using the nonstring attribute.
chggr
force-pushed
the
fix-initializer-string-warnings
branch
from
December 10, 2025 21:08
4022f63 to
ab7979f
Compare
Contributor
Author
|
Thanks for the review. I have updated the commit as requested. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When compiling cmus I get multiple warnings around unterminated string initialization. This patch fixes the warnings by replacing the string initializers with explicit char initializers to avoid truncation of null terminator.