From 2651cf9b026eef8e67ad8cb0146325fbceadec80 Mon Sep 17 00:00:00 2001 From: John Horigan Date: Wed, 3 Apr 2013 22:54:07 +0000 Subject: [PATCH] Only create VS6 bugfix routine if we are running VS6 and actually use it, this is to prevent an annoying warning about unused code Signed-off-by: Augustin Cavalier --- src/libs/agg/src/agg_curves.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/agg/src/agg_curves.cpp b/src/libs/agg/src/agg_curves.cpp index cb7a8d7ae2..4701734718 100644 --- a/src/libs/agg/src/agg_curves.cpp +++ b/src/libs/agg/src/agg_curves.cpp @@ -252,8 +252,10 @@ namespace agg return m_scale; } +#if defined(_MSC_VER) && _MSC_VER <= 1200 //------------------------------------------------------------------------ static double MSC60_fix_ICE(double v) { return v; } +#endif //------------------------------------------------------------------------ void curve4_inc::init(double x1, double y1,