]> Savannah Git Hosting - gnulib.git/commit
Use attribute [[nodiscard]] wherever glibc uses __wur.
authorBruno Haible <bruno@clisp.org>
Tue, 30 Jul 2024 00:46:41 +0000 (02:46 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 30 Jul 2024 00:46:41 +0000 (02:46 +0200)
commitb865c4eb02f882291f8d2c18754e86ee8cd98d4a
tree12a81f29242c42b0de20881e166ed6922c00af4e
parent24a82188f918eb0724254203cff510e84d5a8760
Use attribute [[nodiscard]] wherever glibc uses __wur.

* lib/malloc.in.h (memalign): Mark with _GL_ATTRIBUTE_NODISCARD.
* lib/stdio.in.h (fdopen, fgets, fopen, fread, freopen, fscanf, ftell,
ftello, getdelim, getline, popen, scanf, tmpfile, vfscanf, vscanf):
Likewise.
* lib/stdlib.in.h (aligned_alloc, atoll, calloc, canonicalize_file_name,
getsubopt, malloc, mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps,
posix_memalign, posix_openpt, ptsname, realloc, reallocarray, realpath,
rpmatch, secure_getenv): Likewise.
* lib/sys_random.in.h (getrandom): Likewise.
* lib/sys_stat.in.h (fchmodat): Likewise.
* lib/unistd.in.h (chown, dup, faccessat, fchdir, fchownat, ftruncate,
getcwd, getdomainname, getentropy, getgroups, lchown, link, linkat,
pipe, pipe2, pread, pwrite, read, readlink, readlinkat, sethostname,
symlink, symlinkat, truncate, ttyname_r, write): Likewise.
ChangeLog
lib/malloc.in.h
lib/stdio.in.h
lib/stdlib.in.h
lib/sys_random.in.h
lib/sys_stat.in.h
lib/unistd.in.h