From b10b2e1e7f1223fcd1201f517d893a6c6d4e14c7 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 11 Feb 2017 17:07:51 -0500 Subject: [PATCH] Disable another visual studio warning. --- dlib/algs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlib/algs.h b/dlib/algs.h index 749354725..73f9afb2b 100644 --- a/dlib/algs.h +++ b/dlib/algs.h @@ -71,6 +71,13 @@ // Disable "warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)" #pragma warning(disable : 4290) + +// DNN module uses template-based network declaration that leads to very long +// type names. Visual Studio will produce Warning C4503 in such cases. https://msdn.microsoft.com/en-us/library/074af4b6.aspx says +// that correct binaries are still produced even when this warning happens, but linker errors from visual studio, if they occurr could be confusing. +#pragma warning( disable: 4503 ) + + #endif #ifdef __BORLANDC__