aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-12-08 15:29:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-12-08 15:31:53 +0100
commit0d99cdbeed6c0daa5eb23703d08a27e6c7b08b01 (patch)
tree2b8aa0608d6f8939afda21739068d5f5b0ea511a /lib/sendf.h
parentdca257f27ece3ae6d07db8215e89bc0ab22f41a6 (diff)
compile: warn on unused return code from Curl_client_write()
Diffstat (limited to 'lib/sendf.h')
-rw-r--r--lib/sendf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sendf.h b/lib/sendf.h
index 39489e40f..23c720661 100644
--- a/lib/sendf.h
+++ b/lib/sendf.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -52,7 +52,7 @@ void Curl_failf(struct SessionHandle *, const char *fmt, ...);
#define CLIENTWRITE_BOTH (CLIENTWRITE_BODY|CLIENTWRITE_HEADER)
CURLcode Curl_client_write(struct connectdata *conn, int type, char *ptr,
- size_t len);
+ size_t len) WARN_UNUSED_RESULT;
/* internal read-function, does plain socket only */
CURLcode Curl_read_plain(curl_socket_t sockfd,