diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-03-10 19:01:26 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-03-10 19:01:26 +0100 |
commit | 3606cc675c8cfed49091421b7197a3667d5d12cb (patch) | |
tree | 0edeaa6b97d99558b5f56835d5d12892db96b22c | |
parent | 9a74fe65fee19f5b8d71c6c379ca028ad0e356a4 (diff) |
remove cast of unused variables
-rw-r--r-- | sfeed.c | 16 | ||||
-rw-r--r-- | sfeed_opml_import.c | 9 | ||||
-rw-r--r-- | sfeed_web.c | 12 | ||||
-rw-r--r-- | sfeed_xmlenc.c | 13 | ||||
-rw-r--r-- | util.c | 3 |
5 files changed, 0 insertions, 53 deletions
@@ -475,9 +475,6 @@ xml_handler_attr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen, const char *value, size_t valuelen) { - (void)tag; - (void)taglen; - /* handles transforming inline XML to data */ if (ISINCONTENT(ctx)) { if (ctx.contenttype == ContentTypeHTML) @@ -508,11 +505,6 @@ static void xml_handler_attr_end(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen) { - (void)tag; - (void)taglen; - (void)name; - (void)namelen; - if (!ISINCONTENT(ctx) || ctx.contenttype != ContentTypeHTML) return; @@ -525,9 +517,6 @@ static void xml_handler_attr_start(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen) { - (void)tag; - (void)taglen; - if (!ISINCONTENT(ctx) || ctx.contenttype != ContentTypeHTML) return; @@ -542,8 +531,6 @@ xml_handler_attr_start(XMLParser *p, const char *tag, size_t taglen, static void xml_handler_cdata(XMLParser *p, const char *s, size_t len) { - (void)p; - if (!ctx.field) return; @@ -640,9 +627,6 @@ static void xml_handler_start_el_parsed(XMLParser *p, const char *tag, size_t taglen, int isshort) { - (void)tag; - (void)taglen; - if (ctx.iscontenttag) { ctx.iscontent = 1; ctx.iscontenttag = 0; diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index bf1a742..fdee71a 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -25,10 +25,6 @@ static void xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen, int isshort) { - (void)p; - (void)taglen; - (void)isshort; - if (strcasecmp(tag, "outline")) return; @@ -51,11 +47,6 @@ static void xml_handler_attr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen, const char *value, size_t valuelen) { - (void)p; - (void)taglen; - (void)namelen; - (void)valuelen; - if (strcasecmp(tag, "outline")) return; diff --git a/sfeed_web.c b/sfeed_web.c index 52f8f88..3b2b43c 100644 --- a/sfeed_web.c +++ b/sfeed_web.c @@ -28,8 +28,6 @@ printfeedtype(const char *s, FILE *fp) static void xmltagstart(XMLParser *p, const char *tag, size_t taglen) { - (void)p; - isbase = islink = isfeedlink = 0; if (taglen != 4) /* optimization */ return; @@ -43,11 +41,6 @@ xmltagstart(XMLParser *p, const char *tag, size_t taglen) static void xmltagstartparsed(XMLParser *p, const char *tag, size_t taglen, int isshort) { - (void)p; - (void)tag; - (void)taglen; - (void)isshort; - if (!isfeedlink) return; @@ -63,11 +56,6 @@ static void xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen, const char *value, size_t valuelen) { - (void)p; - (void)tag; - (void)taglen; - (void)valuelen; - if (namelen != 4) /* optimization */ return; if (isbase) { diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c index d4bd50d..4a5f12c 100644 --- a/sfeed_xmlenc.c +++ b/sfeed_xmlenc.c @@ -15,8 +15,6 @@ static int isxmlpi, tags; 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(1); @@ -27,11 +25,6 @@ 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; } @@ -39,12 +32,6 @@ static void xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen, const char *value, size_t valuelen) { - (void)p; - (void)tag; - (void)taglen; - (void)namelen; - (void)valuelen; - if (isxmlpi && !strcasecmp(name, "encoding")) { if (*value) { /* output lowercase */ @@ -19,9 +19,6 @@ int pledge(const char *promises, const char *paths[]) { - (void)promises; - (void)paths; - return 0; } #endif |