diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-06-18 14:38:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-20 12:12:12 -0700 |
commit | 0767172b9068b225c06fd7ce66422e5936ec60a2 (patch) | |
tree | 38f52511ff89070c4bd9f1513cffe31ed5aec057 /compat/mingw.h | |
parent | 0b65a8dbdb38962e700ee16776a3042beb489060 (diff) | |
download | git-0767172b9068b225c06fd7ce66422e5936ec60a2.tar.gz |
mingw: let the build succeed with DEVELOPER=1js/mingw-parameter-less-c-functions
The recently introduced developer flags identified a couple of
old-style function declarations in the Windows-specific code where
the parameter list was left empty instead of specifying "void"
explicitly. Let's just fix them.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r-- | compat/mingw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index 69bb43dc35..9a8803b876 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -532,8 +532,8 @@ extern CRITICAL_SECTION pinfo_cs; * A replacement of main() that adds win32 specific initialization. */ -void mingw_startup(); -#define main(c,v) dummy_decl_mingw_main(); \ +void mingw_startup(void); +#define main(c,v) dummy_decl_mingw_main(void); \ static int mingw_main(c,v); \ int main(int argc, char **argv) \ { \ |