QA checking kdelibs

Michael Pyne mpyne at purinchu.net
Mon Mar 9 23:56:49 GMT 2009


On Monday 09 March 2009, David Faure wrote:
> > kdelibs/kinit/kinit.cpp:529: warning: ignoring return value of ‘int
> > chdir(const char*)’
> > kdelibs/kinit/kinit.cpp:532: warning: ignoring return value of ‘int
> > chdir(const char*)’
> > ! Should probably fail here if chdir() fails.
>
> No, if you write a desktop file with Exec=foo and Path=/doesnotexist,
> we still want to execute `foo` even if the chdir() failed. Ignoring errors
> here is perfectly fine and wanted (should I add (void) to silence the
> warning?)

I'd add the (void) and a comment with what you just told me... ;)

> Thanks for the report!

No problemo.

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090309/14a9457c/attachment.sig>


More information about the kde-core-devel mailing list