mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-17 02:34:36 +00:00
examples: Resolve use of unused variables argc and argv
This commit is contained in:
parent
56d85659ac
commit
9c7bd378b6
2 changed files with 2 additions and 6 deletions
expat/examples
|
@ -76,13 +76,11 @@ endElement(void *userData, const XML_Char *name) {
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
main(void) {
|
||||
char buf[BUFSIZ];
|
||||
XML_Parser parser = XML_ParserCreate(NULL);
|
||||
int done;
|
||||
int depth = 0;
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
XML_SetUserData(parser, &depth);
|
||||
XML_SetElementHandler(parser, startElement, endElement);
|
||||
|
|
|
@ -82,11 +82,9 @@ end(void *data, const XML_Char *el) {
|
|||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[]) {
|
||||
main(void) {
|
||||
char buf[BUFFSIZE];
|
||||
XML_Parser parser = XML_ParserCreate(NULL);
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
if (! parser) {
|
||||
fprintf(stderr, "Couldn't allocate memory for parser\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue