summaryrefslogtreecommitdiff
path: root/sfeed_xmlenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_xmlenc.c')
-rw-r--r--sfeed_xmlenc.c14
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 */