Home GnuPG

Mark the initializations with __nonstring__ attribute.

Description

Mark the initializations with nonstring attribute.

* src/b64enc.c (bintoasc): Use GPGRT_ATTR_NONSTRING.
* src/gpg-error.h.in (GPGRT_ATTR_NONSTRING): New.
  • GnuPG-bug-id: T7621
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Auditors
werner
Provenance
gniibeAuthored on Apr 21 2025, 4:43 AM
Parents
rE3bcfc70582fb: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T7621: libgpg-error: __non_string for GCC 15 or later

Event Timeline

werner added a subscriber: werner.
werner added inline comments.
/src/b64enc.c
43

Are you sure that you can set an attribute before the static keyword?

This commit now has outstanding concerns.Tue, Apr 22, 5:03 PM
gniibe added inline comments.
/src/b64enc.c
43

It works with GCC 12, 15 and Clang 19, 21.
So, I think that it's OK.

All concerns with this commit have now been addressed.Wed, Apr 23, 8:55 AM