Skip to content

Commit f2dda7a

Browse files
committed
Fix compiler warnings
1 parent 9b7601a commit f2dda7a

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

ext/libxml/ruby_xml_document.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define __RXML_DOCUMENT__
55

66
extern VALUE cXMLDocument;
7-
void rxml_init_document();
7+
void rxml_init_document(void);
88
VALUE rxml_document_wrap(xmlDocPtr xnode);
99

1010
typedef xmlChar * xmlCharPtr;

ext/libxml/ruby_xml_encoding.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
extern VALUE mXMLEncoding;
99

10-
void rxml_init_encoding();
10+
void rxml_init_encoding(void);
1111

1212
VALUE rxml_new_cstr(const xmlChar* xstr, const xmlChar* xencoding);
1313
VALUE rxml_new_cstr_len(const xmlChar* xstr, const long length, const xmlChar* xencoding);

ext/libxml/ruby_xml_node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static VALUE rxml_node_line_num(VALUE self)
781781
if (line_num == -1)
782782
return (Qnil);
783783
else
784-
return (INT2NUM((long) line_num));
784+
return (LONG2NUM((long) line_num));
785785
}
786786

787787
/*

ext/libxml/ruby_xml_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
extern VALUE cXMLParser;
77

8-
void rxml_init_parser();
8+
void rxml_init_parser(void);
99

1010
#endif

ext/libxml/ruby_xml_parser_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
extern VALUE mXMLParserOptions;
77

8-
void rxml_init_parser_options();
8+
void rxml_init_parser_options(void);
99

1010
#endif

ext/libxml/ruby_xml_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ static VALUE
10481048
rxml_reader_byte_consumed(VALUE self)
10491049
{
10501050
xmlTextReaderPtr xreader = rxml_text_reader_get(self);
1051-
return INT2NUM(xmlTextReaderByteConsumed(xreader));
1051+
return LONG2NUM(xmlTextReaderByteConsumed(xreader));
10521052
}
10531053
#endif
10541054

0 commit comments

Comments
 (0)