mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00: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:
parent
3e5fbbd6cd
commit
6e6253ea88
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user