From: Jérôme Benoit Date: Thu, 1 Mar 2018 23:16:27 +0000 (+0100) Subject: Strict prototype warnings removing. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5aa93c8dbc70f242f4108ce6c13607462a47170f;p=TP_AL_C.git Strict prototype warnings removing. Signed-off-by: Jérôme Benoit --- diff --git a/lexer/lexical_analyzer.c b/lexer/lexical_analyzer.c index 32efd0b..9761ace 100644 --- a/lexer/lexical_analyzer.c +++ b/lexer/lexical_analyzer.c @@ -46,7 +46,7 @@ static bool isEOF() { return false; } -int scanner() { +int scanner(void) { tokenValue[0] = 0; unsigned int i = 0; wchar_t m[6]; diff --git a/lexer/lexical_analyzer.h b/lexer/lexical_analyzer.h index ec9272e..d3ebad7 100644 --- a/lexer/lexical_analyzer.h +++ b/lexer/lexical_analyzer.h @@ -1,6 +1,6 @@ #ifndef LEXICAL_ANALYZER_H_ #define LEXICAL_ANALYZER_H_ -int scanner(); +int scanner(void); #endif /* LEXICAL_ANALYZER_H_ */ diff --git a/lexer/syntactic_analyzer.c b/lexer/syntactic_analyzer.c index b9787df..24ff57a 100644 --- a/lexer/syntactic_analyzer.c +++ b/lexer/syntactic_analyzer.c @@ -194,7 +194,7 @@ static void analyze_BODY() { #endif } -void analyze_AXIOME() { +void analyze_AXIOME(void) { #if DEBUG fprintf(stdout, "entering %s\n", __func__); #endif diff --git a/lexer/syntactic_analyzer.h b/lexer/syntactic_analyzer.h index 9259841..209dd19 100644 --- a/lexer/syntactic_analyzer.h +++ b/lexer/syntactic_analyzer.h @@ -3,6 +3,6 @@ /* Syntactic analyzer functions declarations */ -void analyze_AXIOME(); +void analyze_AXIOME(void); #endif /* SYNTACTIC_ANALYZER_H_ */