mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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:
@@ -2518,7 +2518,7 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer)
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
cmListFileLexer* cmListFileLexer_New()
|
||||
cmListFileLexer* cmListFileLexer_New(void)
|
||||
{
|
||||
cmListFileLexer* lexer = (cmListFileLexer*)malloc(sizeof(cmListFileLexer));
|
||||
if (!lexer) {
|
||||
|
||||
@@ -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*);
|
||||
|
||||
@@ -398,7 +398,7 @@ static void cmListFileLexerDestroy(cmListFileLexer* lexer)
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
cmListFileLexer* cmListFileLexer_New()
|
||||
cmListFileLexer* cmListFileLexer_New(void)
|
||||
{
|
||||
cmListFileLexer* lexer = (cmListFileLexer*)malloc(sizeof(cmListFileLexer));
|
||||
if (!lexer) {
|
||||
|
||||
Reference in New Issue
Block a user