Landing: b88558ce1a1c

Project / Subsystem

binutils / binutils

Date

2026-05-07

Author

H.J. Lu <hjl@sourceware.org>

Commit

b88558ce1a1c405db0846b938960c22e4ceb41f8

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils
patch_id
commit_hash
b88558ce1a1c405db0846b938960c22e4ceb41f8
source_type
public_inbox
headline
Fix the strrchr error for DOS based filesystem
tldr
Fixes -Wdiscarded-qualifiers errors when using strrchr with DOS-style paths.
author
H.J. Lu <hjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • gprof
  • DOS
  • const
  • warning
discussion_id_link
bugzilla_pr
date
2026-05-07T00:00:00.000Z

Addresses -Wdiscarded-qualifiers errors in binutils and gprof when using strrchr with DOS-based file systems. The return value of strrchr is now assigned to a const char* to avoid the warning.