Page MenuHomePhabricator

Macro redefinition produces waring which is treated as error in mitkDump
Closed, ResolvedPublic

Description

Due to a marco redefintion of NOMINMAX Examples/Dump/mitkDump.cpp produces an error which is located somewhere in GDCM. Since warnings as errors is activated this results in a build error.
Adding the following at the top of mitkDump.cpp solves the problem:

Have to do this due to an #define NOMINMAX withing GDCM which gives a warning
which is treated as error
#ifdef WIN32
#undef NOMINMAX
#endif

Event Timeline

User kislinsk has pushed new remote branch:

bug-18527-DisableC4005

[0da8ce]: Merge branch 'bug-18527-DisableC4005'

Merged commits:

2014-12-05 10:52:45 Stefan Kislinskiy [b75942]
COMP: Disable C4005 warning: macro redefinition (NOMINMAX in gdcm.h).