mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
explicit void params declarations, add warnings to keep it correct
thx http://nickdesaulniers.github.io/blog/2019/05/12/f-vs-f-void-in-c-vs-c-plus-plus/
This commit is contained in:
4
main.c
4
main.c
@@ -114,14 +114,14 @@ static void printhelp(FILE *out,const char *progname)
|
||||
fflush(out);
|
||||
}
|
||||
|
||||
static void e_additional()
|
||||
static void e_additional(void)
|
||||
{
|
||||
fprintf(stderr,"additional argument required\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#ifndef STATISTICS
|
||||
static void e_nostatistics()
|
||||
static void e_nostatistics(void)
|
||||
{
|
||||
fprintf(stderr,"statistics support not compiled in\n");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user