summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.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_opml_import.c
parentcb286e2062e2b0c8197c85ff9355aa359fa96097 (diff)
compile with -Wextra, ignore unused parameters
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index f472cb0..ec54d9e 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -22,6 +22,9 @@ isattr(const char *s1, const char *s2) {
static void
xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen) {
+ (void)p;
+ (void)taglen;
+
if(istag(tag, "outline")) {
feedurl[0] = '\0';
feedname[0] = '\0';
@@ -33,6 +36,10 @@ static void
xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen,
int isshort)
{
+ (void)p;
+ (void)taglen;
+ (void)isshort;
+
if(istag(tag, "outline")) {
printf("\tfeed \"%s\" \"%s\" \"%s\"\n",
feedname[0] ? feedname : "unnamed",
@@ -45,6 +52,11 @@ 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(istag(tag, "outline")) {
if(isattr(name, "text") || isattr(name, "title"))
strlcpy(feedname, value, sizeof(feedname));