You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/01/27 23:11:38 UTC
[jira] [Commented] (QPID-5518) server_test.c fails to compile :
ignoring the return value of write()
[ https://issues.apache.org/jira/browse/QPID-5518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883421#comment-13883421 ]
ASF subversion and git services commented on QPID-5518:
-------------------------------------------------------
Commit 1561878 from [~mcpierce] in branch 'dispatch/trunk'
[ https://svn.apache.org/r1561878 ]
QPID-5518: Abort server test on error while writing data.
Previously, the return code was ignored. But if an error occurs then the
test will now abort.
> server_test.c fails to compile : ignoring the return value of write()
> ---------------------------------------------------------------------
>
> Key: QPID-5518
> URL: https://issues.apache.org/jira/browse/QPID-5518
> Project: Qpid
> Issue Type: Bug
> Components: Qpid Dispatch
> Reporter: Darryl L. Pierce
> Assignee: Darryl L. Pierce
>
> When building with warnings as errors, the following occurs:
> /home/mcpierce/Packaging/qpid-dispatch/qpid-dispatch-0.1/tests/server_test.c: In function 'ufd_handler':
> /home/mcpierce/Packaging/qpid-dispatch/qpid-dispatch-0.1/tests/server_test.c:99:18: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result]
> write(fd[1], "X", 1);
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org