[Bf-blender-cvs] [e0283f8] input_method_editor: Cleanup: warnings

Campbell Barton noreply at git.blender.org
Mon Nov 24 00:45:37 CET 2014


Commit: e0283f8b6c2926cb0d4eb9021697bcab645924be
Author: Campbell Barton
Date:   Sun Nov 23 15:13:58 2014 +0100
Branches: input_method_editor
https://developer.blender.org/rBe0283f8b6c2926cb0d4eb9021697bcab645924be

Cleanup: warnings

===================================================================

M	source/creator/CMakeLists.txt
M	source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp

===================================================================

diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 0e596fb..394219b 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -652,9 +652,9 @@ elseif(WIN32)
 				add_custom_target(python_numpy
 					COMMAND ${CMAKE_COMMAND} -E tar xzfv "${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_numpy_1.8.tar.gz"
 					WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages)
+				add_dependencies(blender python_numpy)
 			endif()
 
-			add_dependencies(blender python_numpy)
 
 			install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib
 					DESTINATION ${BLENDER_VERSION}/python	)
diff --git a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
index 228adbb..765f056 100644
--- a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
+++ b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
@@ -41,7 +41,9 @@
 
 #include "BLI_path_util.h"
 
-#define SDL_CHECK(x) ((x) != (void*)0)
+#ifdef WITH_SDL
+#  define SDL_CHECK(x) ((x) != (void *)0)
+#endif
 
 SCA_Joystick::SCA_Joystick(short int index)
 	:




More information about the Bf-blender-cvs mailing list