I tried to set NOMINMAX on the preprocessor but since openFrameworks also defines NOMINMAX on ofConstants.h I get a bunch of warnings that NOMINMAX is already defined. ![]() The affected code is below: const float srcMax = ( (sizeof(SrcType) = sizeof(float) ) ? 1.f : numeric_limits::max() ) const float dstMax = ( (sizeof(PixelType) = sizeof(float) ) ? 1.f : numeric_limits::max() ) I have the following warnings while compiling an openFrameworks 007 project on Visual Studio 2010 SP1: d:\pedro\development\videoflow\openframeworks\libs\openframeworks\types\ofcolor.h(127): warning C4003: not enough actual parameters for macro 'max' d:\pedro\development\videoflow\openframeworks\libs\openframeworks\types\ofcolor.h(128): warning C4003: not enough actual parameters for macro 'max' d:\pedro\development\videoflow\openframeworks\libs\openframeworks\graphics\ofpixels.h(150): warning C4003: not enough actual parameters for macro 'max' d:\pedro\development\videoflow\openframeworks\libs\openframeworks\graphics\ofpixels.h(151): warning C4003: not enough actual parameters for macro 'max'įrom what I could tell this warnings are usually followed by errors but in my case everything works ok.
0 Comments
Leave a Reply. |