cmListFileLexer: Fix signature of cmListFileLexer_New

Add explicit `(void)` instead of an empty argument list, as suggested
by `-Wstrict-prototypes`.
This commit is contained in:
Brad King 2017-01-11 09:32:00 -05:00
parent 3e5fbbd6cd
commit 6e6253ea88
3 changed files with 3 additions and 3 deletions

View File

@ -2518,7 +2518,7 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer)
}
/*--------------------------------------------------------------------------*/
cmListFileLexer* cmListFileLexer_New()
cmListFileLexer* cmListFileLexer_New(void)
{
cmListFileLexer* lexer = (cmListFileLexer*)malloc(sizeof(cmListFileLexer));
if (!lexer) {

View File

@ -46,7 +46,7 @@ typedef struct cmListFileLexer_s cmListFileLexer;
extern "C" {
#endif
cmListFileLexer* cmListFileLexer_New();
cmListFileLexer* cmListFileLexer_New(void);
int cmListFileLexer_SetFileName(cmListFileLexer*, const char*,
cmListFileLexer_BOM* bom);
int cmListFileLexer_SetString(cmListFileLexer*, const char*);

View File

@ -398,7 +398,7 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer)
}
/*--------------------------------------------------------------------------*/
cmListFileLexer* cmListFileLexer_New()
cmListFileLexer* cmListFileLexer_New(void)
{
cmListFileLexer* lexer = (cmListFileLexer*)malloc(sizeof(cmListFileLexer));
if (!lexer) {