Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisoi committed Jan 7, 2024
1 parent 9b7601a commit f2dda7a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define __RXML_DOCUMENT__

extern VALUE cXMLDocument;
void rxml_init_document();
void rxml_init_document(void);
VALUE rxml_document_wrap(xmlDocPtr xnode);

typedef xmlChar * xmlCharPtr;
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

extern VALUE mXMLEncoding;

void rxml_init_encoding();
void rxml_init_encoding(void);

VALUE rxml_new_cstr(const xmlChar* xstr, const xmlChar* xencoding);
VALUE rxml_new_cstr_len(const xmlChar* xstr, const long length, const xmlChar* xencoding);
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ static VALUE rxml_node_line_num(VALUE self)
if (line_num == -1)
return (Qnil);
else
return (INT2NUM((long) line_num));
return (LONG2NUM((long) line_num));
}

/*
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

extern VALUE cXMLParser;

void rxml_init_parser();
void rxml_init_parser(void);

#endif
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_parser_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

extern VALUE mXMLParserOptions;

void rxml_init_parser_options();
void rxml_init_parser_options(void);

#endif
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ static VALUE
rxml_reader_byte_consumed(VALUE self)
{
xmlTextReaderPtr xreader = rxml_text_reader_get(self);
return INT2NUM(xmlTextReaderByteConsumed(xreader));
return LONG2NUM(xmlTextReaderByteConsumed(xreader));
}
#endif

Expand Down

0 comments on commit f2dda7a

Please sign in to comment.