git: <sys/cdefs.h>: Copy attributes for strong/weak references.
Sascha Wildner
swildner at crater.dragonflybsd.org
Wed May 13 05:49:48 PDT 2026
commit 03cb7ce4790efc16a5de0ca89aaad80c8ca9f0f1
Author: Sascha Wildner <saw at online.de>
Date: Wed May 13 14:32:35 2026 +0200
<sys/cdefs.h>: Copy attributes for strong/weak references.
GCC 9 and later take issue with mismatched attributes between aliased
functions. At the same time, the 'copy' attribute was added to copy
the attributes for these cases.
Change __{strong,weak}_reference() to use it. Fixes GCC 12.5's
-Wmissing-attribute warnings.
This is based on a patch by Scott Parlane <scott at parlanenz.com>, which
was based on the change made in linux for the same issue.
Summary of changes:
sys/sys/cdefs.h | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/03cb7ce4790efc16a5de0ca89aaad80c8ca9f0f1
--
DragonFly BSD source repository
More information about the Commits
mailing list