https://sourceware.org/bugzilla/show_bug.cgi?id=27734
Bug ID: 27734
Summary: binutils/rename.c: get_stat_atime_ns/get_stat_mtime_ns
might not use a parameter
Product: binutils
Version: 2.37 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: pexu at sourceware dot mail.kapsi.fi
Target Milestone: ---
Created attachment 13370
--> https://sourceware.org/bugzilla/attachment.cgi?id=13370&action=edit
Adds ATTRIBUTE_UNUSED.
Hi.
At binutils/rename.c. If neither STAT_TIMESPEC nor STAT_TIMESPEC_NS is defined
get_stat_atime_ns(struct stat const *st) and get_stat_mtime_ns(struct stat
const *st) functions do not use the `st' parameter. The warning(s) about an
unused variable is treated as an error.
Attached a patch that adds ATTRIBUTE_UNUSED to both of these parameters. This
began as of commit 985e026451640c880e13827454aa31b7a636d1bc.
--
You are receiving this mail because:
You are on the CC list for the bug.