Skip to content

Commit

Permalink
Get rid of NORETURN for rxml_raise since it may return.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed Jan 8, 2024
1 parent 8911320 commit f881aab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static VALUE rxml_error_reset_handler(VALUE self)
return self;
}

NORETURN(void rxml_raise(const xmlError *xerror))
void rxml_raise(const xmlError *xerror)
{
if (xerror)
{
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/ruby_xml_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ extern VALUE eXMLError;

void rxml_init_error(void);
VALUE rxml_error_wrap(const xmlError *xerror);
NORETURN(void rxml_raise(const xmlError *xerror));
void rxml_raise(const xmlError *xerror);

#endif

0 comments on commit f881aab

Please sign in to comment.