aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-05-24 15:18:26 +0200
committerYang Tse <yangsita@gmail.com>2011-05-24 15:18:26 +0200
commit512b2f77409a7fa86e293e9bdde67df87ae4d501 (patch)
tree4b3d3b6af42463d63e00c9cc02e99dfcf3b6d684
parent8bdc48eddb00bcb4d74bb182231460ce019782d9 (diff)
compiler warning: fix
Fix compiler warning: expression has no effect
-rw-r--r--lib/non-ascii.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/non-ascii.h b/lib/non-ascii.h
index 89899bedd..4e303dff8 100644
--- a/lib/non-ascii.h
+++ b/lib/non-ascii.h
@@ -1,3 +1,5 @@
+#ifndef HEADER_CURL_NON_ASCII_H
+#define HEADER_CURL_NON_ASCII_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
@@ -48,8 +50,7 @@ CURLcode Curl_convert_from_utf8(struct SessionHandle *data,
char *buffer, size_t length);
CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form);
#else
-#define Curl_convert_clone(a,b,c,d) \
- ((void)a, (void)b, (void)c, *(d)=NULL, CURLE_OK)
+#define Curl_convert_clone(a,b,c,d) ((void)a, CURLE_OK)
#define Curl_convert_init(x)
#define Curl_convert_setup(x)
#define Curl_convert_close(x)
@@ -58,3 +59,5 @@ CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form);
#define Curl_convert_from_utf8(a,b,c) ((void)a, CURLE_OK)
#define Curl_convert_form(a,b) CURLE_OK
#endif
+
+#endif /* HEADER_CURL_NON_ASCII_H */