From ff22bdc25cb13dc38307f66b7081a3f3456b9d50 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 21 Mar 2012 18:34:34 -0400 Subject: [PATCH] A minor change to avoid warnings from visual studio --- dlib/timeout/timeout_kernel_1.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlib/timeout/timeout_kernel_1.h b/dlib/timeout/timeout_kernel_1.h index 541507713..735a6cb99 100644 --- a/dlib/timeout/timeout_kernel_1.h +++ b/dlib/timeout/timeout_kernel_1.h @@ -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 {