mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
A minor change to avoid warnings from visual studio
This commit is contained in:
parent
35081b1edd
commit
ff22bdc25c
@ -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
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user