diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-10 20:27:13 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-10 20:27:13 +0000 |
commit | 713b83f7b406858269863d92865b715470d6335c (patch) | |
tree | 79eb2733939d29388f0776f68da4b053427a61c9 /src/htscharset.c | |
parent | 82e61ae9d68114bdcd6fafdb8bf823ae9ce69bef (diff) |
Added the following compiler flags:
* -Wcast-qual
* -Wmissing-parameter-type
* -Wold-style-definition
Diffstat (limited to 'src/htscharset.c')
-rw-r--r-- | src/htscharset.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/htscharset.c b/src/htscharset.c index 50be2d2..48cef69 100644 --- a/src/htscharset.c +++ b/src/htscharset.c @@ -35,6 +35,8 @@ Please visit our Website: http://www.httrack.com #include "punycode.h" #include "htssafe.h" +#include <stdint.h> + int hts_isStringAscii(const char *s, size_t size) { size_t i; @@ -441,7 +443,7 @@ static char *hts_convertStringCharset(const char *s, size_t size, const iconv_t cp = iconv_open(to, from); if (cp != (iconv_t) - 1) { - char *inbuf = (char *) s; + char *inbuf = (char*) (uintptr_t) s; /* ugly iconv api, sheesh */ size_t inbytesleft = size; size_t outbufCapa = 0; char *outbuf = NULL; |