Here, _GL_ARG_NONNULL is not necessarily defined. This could lead to a compilation error.
2026-11-25 Bruno Haible <[email protected]> issymlink, issymlinkat: Avoid possible compilation error. * lib/issymlink.h (issymlink): Use _GL_ATTRIBUTE_NONNULL instead of _GL_ARG_NONNULL. * lib/issymlinkat.h (issymlinkat): Likewise. diff --git a/lib/issymlink.h b/lib/issymlink.h index f210fc5f19..1ff0413139 100644 --- a/lib/issymlink.h +++ b/lib/issymlink.h @@ -17,7 +17,7 @@ #ifndef _ISSYMLINK_H #define _ISSYMLINK_H -/* This file uses _GL_ARG_NONNULL, _GL_INLINE. */ +/* This file uses _GL_ATTRIBUTE_NONNULL, _GL_INLINE. */ #if !_GL_CONFIG_H_INCLUDED #error "Please include config.h first." #endif @@ -44,7 +44,7 @@ _GL_INLINE_HEADER_BEGIN extern "C" { #endif _GL_ISSYMLINK_INLINE int issymlink (const char *filename) - _GL_ARG_NONNULL ((1)); + _GL_ATTRIBUTE_NONNULL ((1)); _GL_ISSYMLINK_INLINE int issymlink (const char *filename) { diff --git a/lib/issymlinkat.h b/lib/issymlinkat.h index 74ed7db7c8..e81b6ca326 100644 --- a/lib/issymlinkat.h +++ b/lib/issymlinkat.h @@ -17,7 +17,7 @@ #ifndef _ISSYMLINKAT_H #define _ISSYMLINKAT_H -/* This file uses _GL_ARG_NONNULL, _GL_INLINE. */ +/* This file uses _GL_ATTRIBUTE_NONNULL, _GL_INLINE. */ #if !_GL_CONFIG_H_INCLUDED #error "Please include config.h first." #endif @@ -47,7 +47,7 @@ _GL_INLINE_HEADER_BEGIN extern "C" { #endif _GL_ISSYMLINKAT_INLINE int issymlinkat (int fd, const char *filename) - _GL_ARG_NONNULL ((2)); + _GL_ATTRIBUTE_NONNULL ((2)); _GL_ISSYMLINKAT_INLINE int issymlinkat (int fd, const char *filename) {
