summaryrefslogtreecommitdiff
path: root/sfeed_web.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-06-28 13:37:50 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-06-28 13:37:50 +0200
commit9273be17a6ddbc1b142cf67f097de978a5a97ceb (patch)
tree69ce99f2d36076f988c48cf358f48d095856692c /sfeed_web.c
parentcb286e2062e2b0c8197c85ff9355aa359fa96097 (diff)
compile with -Wextra, ignore unused parameters
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_web.c')
-rw-r--r--sfeed_web.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sfeed_web.c b/sfeed_web.c
index 714c7b3..7ec9e83 100644
--- a/sfeed_web.c
+++ b/sfeed_web.c
@@ -12,6 +12,8 @@ static char feedlink[4096] = "", basehref[4096] = "", feedtype[256] = "";
static void
xmltagstart(XMLParser *p, const char *tag, size_t taglen) {
+ (void)p;
+
isbase = islink = isfeedlink = 0;
if(taglen == 4) { /* optimization */
if(!strncasecmp(tag, "base", taglen))
@@ -23,6 +25,11 @@ 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) {
if(*feedtype) {
fputs(feedtype, stdout);
@@ -37,6 +44,10 @@ xmltagstartparsed(XMLParser *p, const char *tag, size_t taglen, int isshort) {
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;