From 2c71177309cc59788c2288c6033c9dbbd23f02c3 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 4 May 2021 15:52:58 +0200 Subject: posix: Fix Hurd build failure in tst-execveat This avoids a -Werror compilation failure due to unused local variables. --- posix/tst-execveat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posix/tst-execveat.c b/posix/tst-execveat.c index 53178c10d5..bc4d1aedc9 100644 --- a/posix/tst-execveat.c +++ b/posix/tst-execveat.c @@ -78,9 +78,12 @@ static int do_test (void) { DIR *dirp; - int fd, fd_out; + int fd; +#ifdef O_PATH + int fd_out; char *tmp_dir, *symlink_name, *tmp_sh; struct stat64 st; +#endif dirp = opendir ("/bin"); if (dirp == NULL) -- cgit 1.4.1