Merge topic 'cmListFileLexer-warning-fix'

6e6253ea cmListFileLexer: Fix signature of cmListFileLexer_New
This commit is contained in:
Brad King 2017-01-12 10:20:45 -05:00 committed by CMake Topic Stage
commit e15106b2f1
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) {