From a5594bd44572a60e0a47ff09003b944ba44ce42e Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 2 Jul 2015 09:57:12 -0700 Subject: [PATCH] fix scan-build 'Value stored to 'a_' is never read' warning --- deps/agg/include/agg_color_gray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/agg/include/agg_color_gray.h b/deps/agg/include/agg_color_gray.h index f2cd0ff9c..bf300b8f1 100644 --- a/deps/agg/include/agg_color_gray.h +++ b/deps/agg/include/agg_color_gray.h @@ -652,8 +652,8 @@ struct gray16 //-------------------------------------------------------------------- self_type& opacity(double a_) { - if (a_ < 0) a_ = 0; - else if(a_ > 1) a_ = 1; + if (a_ < 0) a = 0; + else if(a_ > 1) a = 1; else a = (value_type)uround(a_ * double(base_mask)); return *this; }