[ros-diffs] [jgardou] 53111: [CMAKE] - fix "use of uninitialized variables" warning. Yes, cmake got this to!

jgardou at svn.reactos.org jgardou at svn.reactos.org
Sun Aug 7 00:46:46 UTC 2011


Author: jgardou
Date: Sun Aug  7 00:46:46 2011
New Revision: 53111

URL: http://svn.reactos.org/svn/reactos?rev=53111&view=rev
Log:
[CMAKE]
- fix "use of uninitialized variables" warning.
Yes, cmake got this to!

Modified:
    trunk/reactos/cmake/compilerflags.cmake
    trunk/reactos/cmake/msvc.cmake

Modified: trunk/reactos/cmake/compilerflags.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/compilerflags.cmake?rev=53111&r1=53110&r2=53111&view=diff
==============================================================================
--- trunk/reactos/cmake/compilerflags.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/compilerflags.cmake [iso-8859-1] Sun Aug  7 00:46:46 2011
@@ -1,5 +1,6 @@
 
 function(add_compiler_flags)
+    set(flags_list "")
     # Adds the compiler flag to both CMAKE_C_FLAGS and CMAKE_CXX_FLAGS
     foreach(flag ${ARGN})
         set(flags_list "${flags_list} ${flag}")

Modified: trunk/reactos/cmake/msvc.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=53111&r1=53110&r2=53111&view=diff
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Sun Aug  7 00:46:46 2011
@@ -156,6 +156,7 @@
 
     # Add neccessary importlibs for redirections
     set(_libraries "")
+    set(_dependencies "")
     foreach(_lib ${ARGN})
         list(APPEND _libraries "${CMAKE_BINARY_DIR}/importlibs/${_lib}.lib")
         list(APPEND _dependencies ${_lib})




More information about the Ros-diffs mailing list