modified lib/3rdparty/mingw/main.c
authorKJK::Hyperion <hackbunny@reactos.org>
Thu, 4 Dec 2008 15:49:47 +0000 (15:49 +0000)
committerKJK::Hyperion <hackbunny@reactos.org>
Thu, 4 Dec 2008 15:49:47 +0000 (15:49 +0000)
   Make -Wno-main redundant

modified   tools/rbuild/backend/mingw/modulehandler.cpp
   -Wno-main now redundant

svn path=/trunk/; revision=37850

reactos/lib/3rdparty/mingw/main.c
reactos/tools/rbuild/backend/mingw/modulehandler.cpp

index f53ef06..d3d9457 100644 (file)
@@ -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;
index f6cfb0a..6e367c7 100644 (file)
@@ -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