Skip to content

Commit

Permalink
COMP: remove a workaround for a bug in Visual Studio 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz authored and hjmjohnson committed Sep 9, 2021
1 parent 83a51e2 commit 2f732c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@
#include "itkVectorImage.h"
#include "itkLinearInterpolateImageFunction.h"

/* VS 2015 has a bug when building release with the heavily nested for
* loops iterating too many times. This turns off optimization to
* allow the tests to pass.
*/
#if defined(_MSC_VER) && (_MSC_VER == 1900)
# pragma optimize("", off)
#endif

/* Allows testing up to TDimension=4 */
template <unsigned int TDimension>
int
Expand Down
9 changes: 0 additions & 9 deletions Modules/IO/NIFTI/test/itkNiftiImageIOTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,6 @@ CORDirCosines()
*
* Could probably be made to fo the image of vector test as well
*/

/* VS 2015 has a bug when building release with the heavily nested for
* loops iterating too many times. This turns off optimization to
* allow the tests to pass.
*/
#if defined(_MSC_VER) && (_MSC_VER == 1900)
# pragma optimize("", off)
#endif

template <typename PixelType, unsigned VDimension>
int
TestImageOfSymMats(const std::string & fname)
Expand Down
7 changes: 0 additions & 7 deletions Modules/IO/NIFTI/test/itkNiftiImageIOTest3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
#include "itkNiftiImageIOTest.h"
#include "itkEnableIf.h"
#include <limits>
/* VS 2015 has a bug when building release with the heavily nested for
* loops iterating too many times. This turns off optimization to
* allow the tests to pass.
*/
#if defined(_MSC_VER) && (_MSC_VER == 1900)
# pragma optimize("", off)
#endif

template <typename ScalarType>
void
Expand Down

0 comments on commit 2f732c0

Please sign in to comment.