X-Git-Url: http://git.tuebingen.mpg.de/adu.git/log?a=blobdiff_plain;f=fd.c;h=39e98374b3acb9ccc727426bf0b6b06d047b57e7;hb=6744ce67f91c410f69de0763fb6faa01a8a53b28;hp=902e8f1898d29c7ace5a481c4f731ce7134f4433;hpb=2c6a364ea289f39581d1915df6c0bfa01f98b5c1;p=adu.git diff --git a/fd.c b/fd.c index 902e8f1..39e9837 100644 --- a/fd.c +++ b/fd.c @@ -176,9 +176,10 @@ int adu_opendir(const char *dirname, DIR **dir, int *cwd) if (*dir) return 1; ret = -ERRNO_TO_ERROR(errno); -/* Ignore return value of fchdir() and close(). We're busted anyway. */ - if (cwd) - fchdir(*cwd); + /* Ignore return value of fchdir() and close(). We're busted anyway. */ + if (cwd) { + int __a_unused ret2 = fchdir(*cwd); /* STFU, gcc */ + } close_cwd: if (cwd) close(*cwd);