]> git.tuebingen.mpg.de Git - adu.git/commit
fd.c: Avoid gcc warning regarding fchdir().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 4 Jun 2016 14:43:43 +0000 (16:43 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 4 Jun 2016 14:43:43 +0000 (16:43 +0200)
commit6744ce67f91c410f69de0763fb6faa01a8a53b28
tree44a0f7b0e3594626d887b710158b93cc9e31b8f4
parent2c6a364ea289f39581d1915df6c0bfa01f98b5c1
fd.c: Avoid gcc warning regarding fchdir().

gcc-4.8.4 on Ubuntu-14.04 complains about our use of fchdir():

fd.c:181:9: warning: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result [-Wunused-result]
   fchdir(*cwd);

Silence the warning by introducing a dummy variable. The patch also
fixes the indentation of the comment which explains why we ignore
the return value here.
fd.c