unchecked chdir warning

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: unchecked chdir warning
Date: 2016-11-08 15:40:26
Message-ID: CAMkU=1y8rRXv+7A4XM7QZqL15BeUEP8YRYu90wObe-hOvxnyZw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When compiling with --enable-profiling using:

gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)

I get the warning:

ipc.c: In function 'proc_exit':
ipc.c:137:3: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result [-Wunused-result]
chdir(gprofDirName);
^

I don't know if there is anything useful that can be done if the chdir
fails. What is the best way to silence the warning?

Cheers,

Jeff

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-11-08 15:48:31 Re: unchecked chdir warning
Previous Message Oleksandr Shulgin 2016-11-08 14:53:31 Re: Danger of automatic connection reset in psql