quiet spacenav output on linux for regular builds, ifdef signed int for msvc openmp.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 31 Jul 2012 21:26:14 +0000 (21:26 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 31 Jul 2012 21:26:14 +0000 (21:26 +0000)
intern/ghost/intern/GHOST_NDOFManagerX11.cpp
source/blender/blenkernel/intern/mask_rasterize.c

index bd285bc7a27f77626729c20f62c48dfd32c58b7b..49e7def87307ccbcb0d49da34c38e48d92564615 100644 (file)
@@ -58,8 +58,11 @@ GHOST_NDOFManagerX11::GHOST_NDOFManagerX11(GHOST_System& sys)
                }
        }
        else {
+#ifdef DEBUG
+               /* annoying for official builds, just adds noise and most prople don't own these */
                puts("ndof: spacenavd not found");
                /* This isn't a hard error, just means the user doesn't have a 3D mouse. */
+#endif
        }
 }
 
index 17e7926279645ae7d158e38df3c20102e6fe22c9..b26e6de59c4e63217cd59245ef3d4ddaeb40b1ec 100644 (file)
@@ -1301,7 +1301,11 @@ void BKE_maskrasterize_buffer(MaskRasterHandle *mr_handle,
                               const unsigned int width, const unsigned int height,
                               float *buffer)
 {
-       int y;
+#ifdef _MSC_VER
+       int y;  /* msvc requires signed for some reason */
+#else
+       unsigned int y;
+#endif
 
 #pragma omp parallel for private(y)
        for (y = 0; y < height; y++) {