From c6fa6caf38656b1cc2f7e4497c17fd2d2ee417f8 Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Mon, 24 Nov 2014 17:56:10 +0000 Subject: Replace type %d (for enums) with %u in error messages (-Wformat) --- src/raptor_rdfxml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/raptor_rdfxml.c') diff --git a/src/raptor_rdfxml.c b/src/raptor_rdfxml.c index a8bb2918..d1e4bb57 100644 --- a/src/raptor_rdfxml.c +++ b/src/raptor_rdfxml.c @@ -2361,7 +2361,7 @@ raptor_rdfxml_start_element_grammar(raptor_parser *rdf_parser, case RAPTOR_STATE_INVALID: default: raptor_parser_fatal_error(rdf_parser, - "%s Internal error - unexpected parser state %d - %s", + "%s Internal error - unexpected parser state %u - %s", __FUNCTION__, state, raptor_rdfxml_state_as_string(state)); finished = 1; @@ -2898,7 +2898,7 @@ raptor_rdfxml_end_element_grammar(raptor_parser *rdf_parser, case RAPTOR_RDFXML_ELEMENT_CONTENT_TYPE_LAST: default: raptor_parser_fatal_error(rdf_parser, - "%s: Internal error in state RAPTOR_STATE_PROPERTYELT - got unexpected content type %s (%d)", + "%s: Internal error in state RAPTOR_STATE_PROPERTYELT - got unexpected content type %s (%u)", __FUNCTION__, raptor_rdfxml_element_content_type_as_string(element->content_type), element->content_type); @@ -2910,7 +2910,7 @@ raptor_rdfxml_end_element_grammar(raptor_parser *rdf_parser, case RAPTOR_STATE_INVALID: default: raptor_parser_fatal_error(rdf_parser, - "%s: Internal error - unexpected parser state %d - %s", + "%s: Internal error - unexpected parser state %u - %s", __FUNCTION__, state, raptor_rdfxml_state_as_string(state)); -- cgit v1.2.1