Hi Stefan,

Yeah, of course there's a warning, and I will post it :) However, I was surprised that my project compiles in Release and not in Debug. I thought that maybe there was a config error in MITK's cmake files. Debug and release should both use the same warning flags by default, no?

Sorry, there's a lot of french in the output.
7>------ Début de la génération : Projet : ImekaBoundingObjectTestDriver, Configuration : Debug x64 ------
7>BoundingObjectTest.cpp
7>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xutility(2483): error C2220: avertissement considéré comme une erreur - aucun fichier 'object' généré 7>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xutility(2483): warning C4996: 'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' 7>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\xutility(2483): note: voir la déclaration de 'std::copy::_Unchecked_iterators::_Deprecate' 7>d:\imeka\mitk_2018.04\ep\include\itk-4.13\itktransform.hxx(529): note: voir la référence à l'instanciation de la fonction modèle '_OutIt std::copy<const double*,T*>(_InIt,_InIt,_OutIt)' en cours de compilation
7>        with
7>        [
7>            _OutIt=double *,
7>            T=double,
7>            _InIt=const double *
7>        ]
7>d:\imeka\mitk_2018.04\ep\include\itk-4.13\itktransform.hxx(524): note: pendant la compilation de la fonction membre '<Inconnu>' (classe <Inconnu>) 7>d:\imeka\mitk_2018.04\ep\include\itk-4.13\itkmatrixoffsettransformbase.h(101): note: voir la référence à l'instanciation de classe modèle 'itk::Transform<TParametersValueType,3,3>' en cours de compilation
7>        with
7>        [
7>            TParametersValueType=mitk::ScalarType
7>        ]
7>d:\imeka\mitk_2018.04\ep\include\itk-4.13\itkaffinetransform.h(104): note: voir la référence à l'instanciation de classe modèle 'itk::MatrixOffsetTransformBase<TParametersValueType,3,3>' en cours de compilation
7>        with
7>        [
7>            TParametersValueType=mitk::ScalarType
7>        ]
7>d:\imeka\mitk_2018.04\ep\include\itk-4.13\itkscalableaffinetransform.h(38): note: voir la référence à l'instanciation de classe modèle 'itk::AffineTransform<TParametersValueType,3>' en cours de compilation
7>        with
7>        [
7>            TParametersValueType=mitk::ScalarType
7>        ]
7>d:\imeka\mitk_2018.04\ep\include\itk-4.13\itkaffinegeometryframe.h(112): note: voir la référence à l'instanciation de classe modèle 'itk::ScalableAffineTransform<TScalar,3>' en cours de compilation
7>        with
7>        [
7>            TScalar=mitk::ScalarType
7>        ]
7>c:\imeka\mitk\mitk2018.04\modules\core\include\mitkaffinetransform3d.h(25): note: voir la référence à l'instanciation de classe modèle 'itk::AffineGeometryFrame<mitk::ScalarType,3>' en cours de compilation 7>Génération du projet "ImekaBoundingObjectTestDriver.vcxproj" terminée -- ÉCHEC.

Nil Goyette

Le 2018-09-26 à 15:53, Dinkelacker, Stefan a écrit :
Hi, if there's a C2220, there's also at least one warning that triggered the 
error. So it would help to post it, too. :-) Stefan
________________________________________
Von: Nil Goyette <nil.goye...@usherbrooke.ca>
Gesendet: Dienstag, 25. September 2018 19:18
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Warnings treated as errors in tests

Hi all,

When building my app that uses MITK master on VS2017, I get the "C2220
error" only in Debug and only in a test module. There's no problem in
Release. As you may know, this error means that the "warnings are
treated as errors" and there was at least one warning. To get it to
compile, I must Right click on my module - Properties - C/C++ - General
- Warning level - Consider warnings as errors - No (/WX-).

Since it compiles in Release, I'm not sure what to do. Do you guys know
how to fix this?

Nil


_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to