compiling on osx
i'm experiencing some errors compiling opencv 2.4.6.1 on osx mountain lion:
/Users/stanzarossa/Downloads/opencv-2.4.6.1/modules/legacy/src/dpstereo.cpp:164:19: error: multiple unsequenced modifications to 'temp3' [-Werror,-Wunsequenced] if( ( CV_IMAX3( srcdata1[j-3], srcdata1[j-2], srcdata1[j-1] ) - ^ /Users/stanzarossa/Downloads/opencv-2.4.6.1/modules/legacy/src/dpstereo.cpp:79:33: note: expanded from macro 'CV_IMAX3'
define CV_IMAX3(a,b,c) ((temp3 = (a) >= (b) ? (a) : (b)),(temp3 >= (c) ? temp3 : (c)))
^
/Users/stanzarossa/Downloads/opencv-2.4.6.1/modules/legacy/src/dpstereo.cpp:169:19: error: multiple unsequenced modifications to 'temp3' [-Werror,-Wunsequenced] if( ( CV_IMAX3( srcdata2[j+3], srcdata2[j+2], srcdata2[j+1] ) - ^ /Users/stanzarossa/Downloads/opencv-2.4.6.1/modules/legacy/src/dpstereo.cpp:79:33: note: expanded from macro 'CV_IMAX3'
define CV_IMAX3(a,b,c) ((temp3 = (a) >= (b) ? (a) : (b)),(temp3 >= (c) ? temp3 : (c)))
^
/Users/stanzarossa/Downloads/opencv-2.4.6.1/modules/legacy/src/dpstereo.cpp:322:19: error: multiple unsequenced modifications to 'temp3' [-Werror,-Wunsequenced] if( ( CV_IMAX3( src1[(y-1)widthStep+x], src1[ywidthStep+x], ^ /Users/stanzarossa/Downloads/opencv-2.4.6.1/modules/legacy/src/dpstereo.cpp:79:33: note: expanded from macro 'CV_IMAX3'
define CV_IMAX3(a,b,c) ((temp3 = (a) >= (b) ? (a) : (b)),(temp3 >= (c) ? temp3 : (c)))
^
3 errors generated. make[2]: * [modules/legacy/CMakeFiles/opencv_legacy.dir/src/dpstereo.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 47%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl.dir/kernels.cpp.o [ 47%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/spinimages.cpp.o [ 47%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/stereovar.cpp.o make[1]: [modules/legacy/CMakeFiles/opencv_legacy.dir/all] Error 2 [ 47%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_thresh.cpp.o [ 47%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_watershed.cpp.o Linking CXX shared library ../../lib/libopencv_ocl.dylib [ 47%] Built target opencv_ocl Linking CXX shared library ../../lib/libopencv_contrib.dylib [ 47%] Built target opencv_contrib Linking CXX executable ../../bin/opencv_test_imgproc [ 47%] Built target opencv_test_imgproc make: * [all] Error 2
this is the output of the cmake command, some tips?