diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-12-08 15:29:30 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-12-08 15:31:53 +0100 |
commit | 0d99cdbeed6c0daa5eb23703d08a27e6c7b08b01 (patch) | |
tree | 2b8aa0608d6f8939afda21739068d5f5b0ea511a /lib/curl_setup.h | |
parent | dca257f27ece3ae6d07db8215e89bc0ab22f41a6 (diff) | |
download | curl-0d99cdbeed6c0daa5eb23703d08a27e6c7b08b01.tar.gz |
compile: warn on unused return code from Curl_client_write()
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r-- | lib/curl_setup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 84c1b41ce..b046b77d3 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -643,8 +643,10 @@ int netware_init(void); #if defined(__GNUC__) && ((__GNUC__ >= 3) || \ ((__GNUC__ == 2) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 7))) # define UNUSED_PARAM __attribute__((__unused__)) +# define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else # define UNUSED_PARAM /*NOTHING*/ +# define WARN_UNUSED_RESULT #endif /* |