sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 3606cc675c8cfed49091421b7197a3667d5d12cb
parent 9a74fe65fee19f5b8d71c6c379ca028ad0e356a4
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 10 Mar 2016 19:01:26 +0100

remove cast of unused variables

Diffstat:
Msfeed.c | 16----------------
Msfeed_opml_import.c | 9---------
Msfeed_web.c | 12------------
Msfeed_xmlenc.c | 13-------------
Mutil.c | 3---
5 files changed, 0 insertions(+), 53 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -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 @@ -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 @@ -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 @@ -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 */ diff --git a/util.c b/util.c @@ -19,9 +19,6 @@ int pledge(const char *promises, const char *paths[]) { - (void)promises; - (void)paths; - return 0; } #endif