code cleanup: warn undefined compiler defines.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 8 Jun 2013 05:24:55 +0000 (05:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 8 Jun 2013 05:24:55 +0000 (05:24 +0000)
source/blender/modifiers/intern/MOD_laplaciansmooth.c
source/blender/modifiers/intern/MOD_ocean.c
source/blender/render/intern/source/shadbuf.c

index 29da4076acdc030e38e765398b6a5a1e88db5065..cf9ab8d5ec2b72f4477ab5c27eff07e5a841ba30 100644 (file)
 
 #include "ONL_opennl.h"
 
+#if 0
 #define MOD_LAPLACIANSMOOTH_MAX_EDGE_PERCENTAGE 1.8f
 #define MOD_LAPLACIANSMOOTH_MIN_EDGE_PERCENTAGE 0.02f
+#endif
 
 struct BLaplacianSystem {
        float *eweights;        /* Length weights per Edge */
index d8f2d22777887e26cd3dc2a60b44bd901935b644..7c9a88622ed7bf1f4f4b3fba29ff115600650825 100644 (file)
@@ -272,8 +272,10 @@ static void dm_get_bounds(DerivedMesh *dm, float *sx, float *sy, float *ox, floa
 
 #ifdef WITH_OCEANSIM
 
-
+#ifdef _OPENMP
 #define OMP_MIN_RES 18
+#endif
+
 static DerivedMesh *generate_ocean_geometry(OceanModifierData *omd)
 {
        DerivedMesh *result;
index 7cb37ce5aa6b385d3eb1db2d3e9d635548630419..6453c03c5964611b7392fab61dc8202f288c5c2c 100644 (file)
 
 /* XXX, could be better implemented... this is for endian issues */
 #ifdef __BIG_ENDIAN__
-#  define RCOMP        3
+//#  define RCOMP      3
 #  define GCOMP        2
 #  define BCOMP        1
 #  define ACOMP        0
 #else
-#  define RCOMP        0
+//#  define RCOMP      0
 #  define GCOMP        1
 #  define BCOMP        2
 #  define ACOMP        3