about summary refs log tree commit diff
path: root/sysdeps/posix/tempname.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-08-23 21:16:39 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-08-23 21:58:39 -0700
commit464138e90497be474fdbb19eebc0269ea24c5ce1 (patch)
tree9531e057a3ffdb842bc062f1c2e81c8121f5c0b7 /sysdeps/posix/tempname.c
parent8995b84c45e82c461bfcce34fff63c8e4e0b2aea (diff)
downloadglibc-464138e90497be474fdbb19eebc0269ea24c5ce1.tar.gz
glibc-464138e90497be474fdbb19eebc0269ea24c5ce1.tar.xz
glibc-464138e90497be474fdbb19eebc0269ea24c5ce1.zip
Merge _GL_UNUSED C23 patch from Gnulib
* posix/getopt.c (_getopt_initialize):
* sysdeps/posix/tempname.c (try_dir, try_nocreate):
Put _GL_UNUSED before args instead of after.
This makes no difference for glibc.
It is needed for Gnulib when being compiled on
non-GCC C23 compilers.
Diffstat (limited to 'sysdeps/posix/tempname.c')
-rw-r--r--sysdeps/posix/tempname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c
index ebd2a43951..60f8541085 100644
--- a/sysdeps/posix/tempname.c
+++ b/sysdeps/posix/tempname.c
@@ -181,13 +181,13 @@ try_file (char *tmpl, void *flags)
 }
 
 static int
-try_dir (char *tmpl, void *flags _GL_UNUSED)
+try_dir (char *tmpl, _GL_UNUSED void *flags)
 {
   return __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR);
 }
 
 static int
-try_nocreate (char *tmpl, void *flags _GL_UNUSED)
+try_nocreate (char *tmpl, _GL_UNUSED void *flags)
 {
   struct_stat64 st;