diff --git a/reactos/lib/3rdparty/mingw/main.c b/reactos/lib/3rdparty/mingw/main.c index f53ef06a606..d3d94571137 100644 --- a/reactos/lib/3rdparty/mingw/main.c +++ b/reactos/lib/3rdparty/mingw/main.c @@ -20,7 +20,7 @@ extern int PASCAL WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR szCmdLine, int nShow); int -main (int argc, const char *argv[], const char *environ[]) +main (int argc, const char *argv[]) { char *szCmd; STARTUPINFO startinfo; diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index f6cfb0a7815..6e367c75f46 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -2009,16 +2009,6 @@ MingwModuleHandler::GenerateOtherMacros () linkerflags ); } - if ( IsStaticLibrary ( module ) && module.isStartupLib ) - { - fprintf ( fMakefile, - "%s += -Wno-main\n\n", - cflagsMacro.c_str () ); - fprintf ( fMakefile, - "%s += -Wno-main\n\n", - cxxflagsMacro.c_str () ); - } - fprintf ( fMakefile, "\n\n" ); // future references to the macros will be to get their values