1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-12 19:04:54 +03:00

posix: Fix Hurd build failure in tst-execveat

This avoids a -Werror compilation failure due to unused local
variables.
This commit is contained in:
Florian Weimer
2021-05-04 15:52:58 +02:00
parent 2a76821c30
commit 2c71177309

View File

@@ -78,9 +78,12 @@ static int
do_test (void) do_test (void)
{ {
DIR *dirp; DIR *dirp;
int fd, fd_out; int fd;
#ifdef O_PATH
int fd_out;
char *tmp_dir, *symlink_name, *tmp_sh; char *tmp_dir, *symlink_name, *tmp_sh;
struct stat64 st; struct stat64 st;
#endif
dirp = opendir ("/bin"); dirp = opendir ("/bin");
if (dirp == NULL) if (dirp == NULL)