fix more warnings in libYAML
This commit is contained in:
parent
471797d98b
commit
e4451dd5ab
|
@ -1205,7 +1205,7 @@ yaml_document_add_scalar(yaml_document_t *document,
|
|||
SCALAR_NODE_INIT(node, tag_copy, value_copy, length, style, mark, mark);
|
||||
if (!PUSH(&context, document->nodes, node)) goto error;
|
||||
|
||||
return document->nodes.top - (int)document->nodes.start;
|
||||
return (int)document->nodes.top - (int)document->nodes.start;
|
||||
|
||||
error:
|
||||
yaml_free(tag_copy);
|
||||
|
@ -1250,7 +1250,7 @@ yaml_document_add_sequence(yaml_document_t *document,
|
|||
style, mark, mark);
|
||||
if (!PUSH(&context, document->nodes, node)) goto error;
|
||||
|
||||
return document->nodes.top - (int)document->nodes.start;
|
||||
return (int)document->nodes.top - (int)document->nodes.start;
|
||||
|
||||
error:
|
||||
STACK_DEL(&context, items);
|
||||
|
@ -1295,7 +1295,7 @@ yaml_document_add_mapping(yaml_document_t *document,
|
|||
style, mark, mark);
|
||||
if (!PUSH(&context, document->nodes, node)) goto error;
|
||||
|
||||
return document->nodes.top - (int)document->nodes.start;
|
||||
return (int)document->nodes.top - (int)document->nodes.start;
|
||||
|
||||
error:
|
||||
STACK_DEL(&context, pairs);
|
||||
|
|
|
@ -300,7 +300,7 @@ yaml_parser_load_scalar(yaml_parser_t *parser, yaml_event_t *first_event)
|
|||
|
||||
if (!PUSH(parser, parser->document->nodes, node)) goto error;
|
||||
|
||||
index = parser->document->nodes.top - (int)parser->document->nodes.start;
|
||||
index = (int)parser->document->nodes.top - (int)parser->document->nodes.start;
|
||||
|
||||
if (!yaml_parser_register_anchor(parser, index,
|
||||
first_event->data.scalar.anchor)) return 0;
|
||||
|
@ -347,7 +347,7 @@ yaml_parser_load_sequence(yaml_parser_t *parser, yaml_event_t *first_event)
|
|||
|
||||
if (!PUSH(parser, parser->document->nodes, node)) goto error;
|
||||
|
||||
index = parser->document->nodes.top - (int)parser->document->nodes.start;
|
||||
index = (int)parser->document->nodes.top - (int)parser->document->nodes.start;
|
||||
|
||||
if (!yaml_parser_register_anchor(parser, index,
|
||||
first_event->data.sequence_start.anchor)) return 0;
|
||||
|
@ -410,7 +410,7 @@ yaml_parser_load_mapping(yaml_parser_t *parser, yaml_event_t *first_event)
|
|||
|
||||
if (!PUSH(parser, parser->document->nodes, node)) goto error;
|
||||
|
||||
index = parser->document->nodes.top - (int)parser->document->nodes.start;
|
||||
index = (int)parser->document->nodes.top - (int)parser->document->nodes.start;
|
||||
|
||||
if (!yaml_parser_register_anchor(parser, index,
|
||||
first_event->data.mapping_start.anchor)) return 0;
|
||||
|
|
|
@ -367,7 +367,7 @@
|
|||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE;
|
||||
SWIFT_VERSION = 3.0;
|
||||
TARGET_NAME = CYaml;
|
||||
WARNING_CFLAGS = "-Wshorten-64-to-32";
|
||||
WARNING_CFLAGS = "-Wall";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
|
@ -390,7 +390,7 @@
|
|||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE;
|
||||
SWIFT_VERSION = 3.0;
|
||||
TARGET_NAME = CYaml;
|
||||
WARNING_CFLAGS = "-Wshorten-64-to-32";
|
||||
WARNING_CFLAGS = "-Wall";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue