Skip to content

Commit

Permalink
Merge pull request #113 from sthibaul/master
Browse files Browse the repository at this point in the history
Fix build with gcc-15
  • Loading branch information
egli authored Feb 18, 2025
2 parents ff69a5e + 4ff52b8 commit d9c15ca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions liblouisutdml/louisutdml.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ int make_endnotes();
int link_endnote(xmlNode* node);
void set_notes_header();
void set_notes_description();
int start_endnote();
int start_endnote(void);
int finish_endnote(xmlNode* node);
void do_reverse (xmlNode * node);
int do_boxline (xmlNode * node);
Expand Down Expand Up @@ -389,7 +389,7 @@ StyleType *find_current_style ();
void insert_text (xmlNode * node);
int insert_linkOrTarget (xmlNode * node, int which);
int start_style (StyleType * curStyle, xmlNode * node);
int end_style ();
int end_style (void);
int find_action (const char **actions, const char *action);
int find_group_length (const char groupSym[2], const char *groupStart);
char *alloc_string (const char *inString);
Expand Down
2 changes: 1 addition & 1 deletion liblouisutdml/makeContents.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ make_contents (void)
currentHeading->headingLength * CHARSIZE);
ud->translated_length = currentHeading->headingLength;
ud->in_sync = 0;
end_style (style);
end_style ();
currentHeading = currentHeading->next;
}
do_newpage ();
Expand Down
6 changes: 3 additions & 3 deletions liblouisutdml/makeEndnotes.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ int make_endnotes(void)
start_style(style,NULL);
memcpy(&ud->translated_buffer[ud->translated_length],notes_header,notes_header_length*CHARSIZE);
ud->translated_length+=notes_header_length;
end_style(style);
end_style();
do_blankline();
has_newline=1;
free(notes_header);
Expand All @@ -530,7 +530,7 @@ int make_endnotes(void)
start_style(style,NULL);
memcpy(&ud->translated_buffer[ud->translated_length],notes_description,notes_description_length*CHARSIZE);
ud->translated_length+=notes_description_length;
end_style(style);
end_style();
do_blankline();
has_newline=1;
free(notes_description);
Expand Down Expand Up @@ -564,7 +564,7 @@ int make_endnotes(void)
ud->translated_buffer[ud->translated_length++] = ' ';
memcpy(&ud->translated_buffer[ud->translated_length],current_endnote->endnote,current_endnote->endnote_length*CHARSIZE);
ud->translated_length += current_endnote->endnote_length;
end_style(style);
end_style();
ud->in_sync=0;
current_endnote = current_endnote->next;
}
Expand Down
2 changes: 1 addition & 1 deletion liblouisutdml/transcribe_paragraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ transcribe_paragraph (xmlNode * node, int action)
break;
case noteref: ////
if(ud->endnotes)
start_endnote(node);
start_endnote();
else
{
if(action!=0)
Expand Down
6 changes: 3 additions & 3 deletions liblouisutdml/transcriber.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ transcribe_text_string ()
return 0;
if (ch == 10)
do_blankline ();
end_style (paraStyle);
end_style ();
charsInParagraph = 0;
pch = 0;
if (ch > 32)
paragraphBuffer[charsInParagraph++] = ch;
}
ud->input_encoding = lbu_utf8;
end_style (docStyle);
end_style ();
end_document ();
return 1;
}
Expand Down Expand Up @@ -3917,7 +3917,7 @@ start_style (StyleType * curStyle, xmlNode * node)
}

int
end_style ()
end_style (void)
{
logMessage(LOU_LOG_DEBUG, "Begin end_style");
styleSpec = &ud->style_stack[ud->style_top];
Expand Down

0 comments on commit d9c15ca

Please sign in to comment.