| 1 |
commit bb34ca8cd3cd6e94c812a6016c8d0e432dbb3366 |
| 2 |
Author: Samuel Thibault <[email protected]> |
| 3 |
Date: Mon Feb 17 22:39:14 2025 +0100 |
| 4 |
|
| 5 |
Fix build with gcc-15 |
| 6 |
|
| 7 |
Which now defaults to C23. |
| 8 |
|
| 9 |
diff --git a/liblouisutdml/louisutdml.h b/liblouisutdml/louisutdml.h |
| 10 |
index a7897a0..5c15950 100644 |
| 11 |
--- a/liblouisutdml/louisutdml.h |
| 12 |
+++ b/liblouisutdml/louisutdml.h |
| 13 |
@@ -359,7 +359,7 @@ int make_endnotes(); |
| 14 |
int link_endnote(xmlNode* node); |
| 15 |
void set_notes_header(); |
| 16 |
void set_notes_description(); |
| 17 |
-int start_endnote(); |
| 18 |
+int start_endnote(void); |
| 19 |
int finish_endnote(xmlNode* node); |
| 20 |
void do_reverse (xmlNode * node); |
| 21 |
int do_boxline (xmlNode * node); |
| 22 |
@@ -389,7 +389,7 @@ StyleType *find_current_style (); |
| 23 |
void insert_text (xmlNode * node); |
| 24 |
int insert_linkOrTarget (xmlNode * node, int which); |
| 25 |
int start_style (StyleType * curStyle, xmlNode * node); |
| 26 |
-int end_style (); |
| 27 |
+int end_style (void); |
| 28 |
int find_action (const char **actions, const char *action); |
| 29 |
int find_group_length (const char groupSym[2], const char *groupStart); |
| 30 |
char *alloc_string (const char *inString); |
| 31 |
diff --git a/liblouisutdml/makeContents.c b/liblouisutdml/makeContents.c |
| 32 |
index b514928..f5b47a8 100644 |
| 33 |
--- a/liblouisutdml/makeContents.c |
| 34 |
+++ b/liblouisutdml/makeContents.c |
| 35 |
@@ -270,7 +270,7 @@ make_contents (void) |
| 36 |
currentHeading->headingLength * CHARSIZE); |
| 37 |
ud->translated_length = currentHeading->headingLength; |
| 38 |
ud->in_sync = 0; |
| 39 |
- end_style (style); |
| 40 |
+ end_style (); |
| 41 |
currentHeading = currentHeading->next; |
| 42 |
} |
| 43 |
do_newpage (); |
| 44 |
diff --git a/liblouisutdml/makeEndnotes.c b/liblouisutdml/makeEndnotes.c |
| 45 |
index b1b1849..009c530 100644 |
| 46 |
--- a/liblouisutdml/makeEndnotes.c |
| 47 |
+++ b/liblouisutdml/makeEndnotes.c |
| 48 |
@@ -519,7 +519,7 @@ int make_endnotes(void) |
| 49 |
start_style(style,NULL); |
| 50 |
memcpy(&ud->translated_buffer[ud->translated_length],notes_header,notes_header_length*CHARSIZE); |
| 51 |
ud->translated_length+=notes_header_length; |
| 52 |
- end_style(style); |
| 53 |
+ end_style(); |
| 54 |
do_blankline(); |
| 55 |
has_newline=1; |
| 56 |
free(notes_header); |
| 57 |
@@ -530,7 +530,7 @@ int make_endnotes(void) |
| 58 |
start_style(style,NULL); |
| 59 |
memcpy(&ud->translated_buffer[ud->translated_length],notes_description,notes_description_length*CHARSIZE); |
| 60 |
ud->translated_length+=notes_description_length; |
| 61 |
- end_style(style); |
| 62 |
+ end_style(); |
| 63 |
do_blankline(); |
| 64 |
has_newline=1; |
| 65 |
free(notes_description); |
| 66 |
@@ -564,7 +564,7 @@ int make_endnotes(void) |
| 67 |
ud->translated_buffer[ud->translated_length++] = ' '; |
| 68 |
memcpy(&ud->translated_buffer[ud->translated_length],current_endnote->endnote,current_endnote->endnote_length*CHARSIZE); |
| 69 |
ud->translated_length += current_endnote->endnote_length; |
| 70 |
- end_style(style); |
| 71 |
+ end_style(); |
| 72 |
ud->in_sync=0; |
| 73 |
current_endnote = current_endnote->next; |
| 74 |
} |
| 75 |
diff --git a/liblouisutdml/transcribe_paragraph.c b/liblouisutdml/transcribe_paragraph.c |
| 76 |
index 5eb37ae..0deb1e7 100644 |
| 77 |
--- a/liblouisutdml/transcribe_paragraph.c |
| 78 |
+++ b/liblouisutdml/transcribe_paragraph.c |
| 79 |
@@ -318,7 +318,7 @@ transcribe_paragraph (xmlNode * node, int action) |
| 80 |
break; |
| 81 |
case noteref: //// |
| 82 |
if(ud->endnotes) |
| 83 |
- start_endnote(node); |
| 84 |
+ start_endnote(); |
| 85 |
else |
| 86 |
{ |
| 87 |
if(action!=0) |
| 88 |
diff --git a/liblouisutdml/transcriber.c b/liblouisutdml/transcriber.c |
| 89 |
index 512da8c..07d7b5a 100644 |
| 90 |
--- a/liblouisutdml/transcriber.c |
| 91 |
+++ b/liblouisutdml/transcriber.c |
| 92 |
@@ -331,14 +331,14 @@ transcribe_text_string () |
| 93 |
return 0; |
| 94 |
if (ch == 10) |
| 95 |
do_blankline (); |
| 96 |
- end_style (paraStyle); |
| 97 |
+ end_style (); |
| 98 |
charsInParagraph = 0; |
| 99 |
pch = 0; |
| 100 |
if (ch > 32) |
| 101 |
paragraphBuffer[charsInParagraph++] = ch; |
| 102 |
} |
| 103 |
ud->input_encoding = lbu_utf8; |
| 104 |
- end_style (docStyle); |
| 105 |
+ end_style (); |
| 106 |
end_document (); |
| 107 |
return 1; |
| 108 |
} |
| 109 |
@@ -3917,7 +3917,7 @@ start_style (StyleType * curStyle, xmlNode * node) |
| 110 |
} |
| 111 |
|
| 112 |
int |
| 113 |
-end_style () |
| 114 |
+end_style (void) |
| 115 |
{ |
| 116 |
logMessage(LOU_LOG_DEBUG, "Begin end_style"); |
| 117 |
styleSpec = &ud->style_stack[ud->style_top]; |