From: Maxim Mamontov Date: Thu, 7 Apr 2011 13:15:41 +0000 (+0300) Subject: Fix compiler warning in sgconf_xml X-Git-Tag: 2.407-rc3~62 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/09c44c9a7e8c870e07827b3fc34811cd917b6115 Fix compiler warning in sgconf_xml --- diff --git a/projects/sgconf_xml/parser.cpp b/projects/sgconf_xml/parser.cpp index 919a8c19..df18975e 100644 --- a/projects/sgconf_xml/parser.cpp +++ b/projects/sgconf_xml/parser.cpp @@ -10,7 +10,7 @@ int parse_depth = 0; XML_Parser parser; //--------------------------------------------------------------------------- -int ParseAns(void * data, const char *el, const char **attr) +int ParseAns(void *, const char *el, const char **attr) { if (strcasecmp(el, "ServerInfo") == 0 || strcasecmp(el, "Tariffs") == 0 || strcasecmp(el, "Admins") == 0 || strcasecmp(el, "Users") == 0 || strcasecmp(el, "user") == 0) { @@ -127,7 +127,7 @@ if (parse_depth == 1) } } //----------------------------------------------------------------------------- -void EndElement(void *data, const char *el) +void EndElement(void *, const char *el) { parse_depth--; if (strcasecmp(el, "ServerInfo") == 0 || strcasecmp(el, "Tariffs") == 0 || strcasecmp(el, "Admins") == 0 || strcasecmp(el, "Users") == 0 || strcasecmp(el, "tariff") == 0 || strcasecmp(el, "user") == 0) @@ -136,7 +136,7 @@ if (strcasecmp(el, "ServerInfo") == 0 || strcasecmp(el, "Tariffs") == 0 || strca } } //--------------------------------------------------------------------------- -int ParseReply(void * data, list * ans) +int ParseReply(void *, list * ans) //int ParseReply(void * data, SLIST * ans) { //char answ[ENC_MSG_LEN + 1];