From fdf6902ade23cbb9ee8bd1afbebda0dcab4719a3 Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 5 Dec 2013 23:29:35 -0500 Subject: [PATCH] Another minor thing to avoid warnings from visual studio. --- dlib/external/zlib/gzguts.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlib/external/zlib/gzguts.h b/dlib/external/zlib/gzguts.h index 1b56c48a5..bbb7d2273 100644 --- a/dlib/external/zlib/gzguts.h +++ b/dlib/external/zlib/gzguts.h @@ -3,6 +3,14 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +#ifdef _MSC_VER +// Disable the following warnings for Visual Studio +// This is a warning you get from visual studio 2005 about things in the standard C++ +// library being "deprecated." I checked the C++ standard and it doesn't say jack +// about any of them (I checked the searchable PDF). So this warning is total Bunk. +#pragma warning(disable : 4996) +#endif + #ifdef _LARGEFILE64_SOURCE # ifndef _LARGEFILE_SOURCE # define _LARGEFILE_SOURCE 1