A minor change to avoid warnings from visual studio

This commit is contained in:
Davis King 2012-03-21 18:34:34 -04:00
parent 35081b1edd
commit ff22bdc25c

View File

@ -10,6 +10,14 @@
#include "../uintn.h"
#include "../timer.h"
#ifdef _MSC_VER
// this is to disable the "'this' : used in base member initializer list"
// warning you get from some of the GUI objects since all the objects
// require that their parent class be passed into their constructor.
// In this case though it is totally safe so it is ok to disable this warning.
#pragma warning(disable : 4355)
#endif // _MSC_VER
namespace dlib
{