[ros-diffs] [tkreuzer] 49697: [CMAKE] Allow no entrypoint for MSVC and use no entrypoint in genincdata to silence warning

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Nov 21 19:47:56 UTC 2010


Author: tkreuzer
Date: Sun Nov 21 19:47:55 2010
New Revision: 49697

URL: http://svn.reactos.org/svn/reactos?rev=49697&view=rev
Log:
[CMAKE]
Allow no entrypoint for MSVC and use no entrypoint in genincdata to silence warning

Modified:
    branches/cmake-bringup/include/asm/CMakeLists.txt
    branches/cmake-bringup/include/asm/genincdata.c
    branches/cmake-bringup/msc.cmake

Modified: branches/cmake-bringup/include/asm/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/asm/CMakeLists.txt?rev=49697&r1=49696&r2=49697&view=diff
==============================================================================
--- branches/cmake-bringup/include/asm/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/include/asm/CMakeLists.txt [iso-8859-1] Sun Nov 21 19:47:55 2010
@@ -1,7 +1,7 @@
 
 add_library(genincdata SHARED genincdata.c)
 
-set_entrypoint(genincdata DummyEntry)
+set_entrypoint(genincdata 0)
 add_dependencies(genincdata bugcodes)
 
 if(MSVC)

Modified: branches/cmake-bringup/include/asm/genincdata.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/asm/genincdata.c?rev=49697&r1=49696&r2=49697&view=diff
==============================================================================
--- branches/cmake-bringup/include/asm/genincdata.c [iso-8859-1] (original)
+++ branches/cmake-bringup/include/asm/genincdata.c [iso-8859-1] Sun Nov 21 19:47:55 2010
@@ -77,7 +77,3 @@
     {TYPE_END, "", 0}
 };
 
-LONG NTAPI DummyEntry(HANDLE hinstDLL, ULONG fdwReason, PVOID lpvReserved)
-{
-    return 0;
-}

Modified: branches/cmake-bringup/msc.cmake
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=49697&r1=49696&r2=49697&view=diff
==============================================================================
--- branches/cmake-bringup/msc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/msc.cmake [iso-8859-1] Sun Nov 21 19:47:55 2010
@@ -46,7 +46,7 @@
 
 macro(set_entrypoint MODULE ENTRYPOINT)
     if(${ENTRYPOINT} STREQUAL "0")
-        add_linkerflag(${MODULE} "/ENTRY:0")
+        add_linkerflag(${MODULE} "/NOENTRY")
     else()
         add_linkerflag(${MODULE} "/ENTRY:${ENTRYPOINT}")
     endif()




More information about the Ros-diffs mailing list