diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-06-28 13:37:50 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-06-28 13:37:50 +0200 |
commit | 9273be17a6ddbc1b142cf67f097de978a5a97ceb (patch) | |
tree | 69ce99f2d36076f988c48cf358f48d095856692c /sfeed_xmlenc.c | |
parent | cb286e2062e2b0c8197c85ff9355aa359fa96097 (diff) |
compile with -Wextra, ignore unused parameters
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_xmlenc.c')
-rw-r--r-- | sfeed_xmlenc.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c index 500064b..81d9795 100644 --- a/sfeed_xmlenc.c +++ b/sfeed_xmlenc.c @@ -10,6 +10,8 @@ static int isxmlpi = 0, tags = 0; static void xmltagstart(XMLParser *p, const char *tag, size_t taglen) { + (void)p; + /* optimization: try to find processing instruction at start */ if(tags > 3) exit(EXIT_FAILURE); @@ -19,13 +21,23 @@ xmltagstart(XMLParser *p, const char *tag, size_t taglen) { static void xmltagend(XMLParser *p, const char *tag, size_t taglen, int isshort) { + (void)p; + (void)tag; + (void)taglen; + (void)isshort; + isxmlpi = 0; } static void xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, - size_t namelen, const char *value, size_t valuelen) + size_t namelen, const char *value, size_t valuelen) { + (void)p; + (void)tag; + (void)taglen; + (void)valuelen; + if(isxmlpi && (!strncasecmp(name, "encoding", namelen))) { if(*value) { /* output lowercase */ |