Skip to content

Commit f79171f

Browse files
tectonic: fix warnings related to old style definitions
-Wold-style-definition -Wstrict-prototypes
1 parent 90f2ab4 commit f79171f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tectonic/TECkit_Engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ TECkit_GetMappingFlags(
208208
*/
209209
UInt32
210210
WINAPI EXPORTED
211-
TECkit_GetVersion();
211+
TECkit_GetVersion(void);
212212

213213
/*
214214
***** New APIs for version 2.1 of the engine *****

tectonic/XeTeXLayoutInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern char gPrefEngine;
4444
int getCachedGlyphBBox(uint16_t fontID, uint16_t glyphID, GlyphBBox* bbox);
4545
void cacheGlyphBBox(uint16_t fontID, uint16_t glyphID, const GlyphBBox* bbox);
4646

47-
void terminate_font_manager();
47+
void terminate_font_manager(void);
4848

4949
XeTeXFont createFont(PlatformFontRef fontRef, Fixed pointSize);
5050
XeTeXFont createFontFromFile(const char* filename, int index, Fixed pointSize);
@@ -53,7 +53,7 @@ void setFontLayoutDir(XeTeXFont font, int vertical);
5353

5454
PlatformFontRef findFontByName(const char* name, char* var, double size);
5555

56-
char getReqEngine();
56+
char getReqEngine(void);
5757
void setReqEngine(char reqEngine);
5858
const char* getFullName(PlatformFontRef fontRef);
5959

tectonic/dpx-pdfdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ pdf_dev_begin_actualtext (uint16_t *unicodes, int count)
19921992
}
19931993

19941994
void
1995-
pdf_dev_end_actualtext ()
1995+
pdf_dev_end_actualtext (void)
19961996
{
19971997
graphics_mode();
19981998

tectonic/dpx-pdfdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ extern void pdf_dev_push_coord(double xpos, double ypos);
222222
extern void pdf_dev_pop_coord(void);
223223

224224
extern void pdf_dev_begin_actualtext (uint16_t *unicodes, int len);
225-
extern void pdf_dev_end_actualtext ();
225+
extern void pdf_dev_end_actualtext (void);
226226

227227
#endif /* _PDFDEV_H_ */

0 commit comments

Comments
 (0)