Landing: 922d530f0aa6
Project / Subsystem
binutils / binutils
Date
2026-05-07
Author
H.J. Lu <hjl@sourceware.org>
Commit
922d530f0aa6973b92489e4c84a449bf09421b1f
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils
- patch_id
- —
- commit_hash
- 922d530f0aa6973b92489e4c84a449bf09421b1f
- source_type
- public_inbox
- headline
- binutils: fix C23 -Wdiscarded-qualifiers errors
- tldr
- Fixes -Wdiscarded-qualifiers errors in binutils by correctly handling const char* return values from strchr.
- author
- H.J. Lu <hjl@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • binutils
- • const
- • warning
- • C23
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-07T00:00:00.000Z
This commit resolves -Wdiscarded-qualifiers errors in binutils, which arise when assigning the return value of strchr (which is now a const char* when passed a const char*) to a non-const char*. The affected files are addr2line.c, nm.c, and prdbg.c.