From a0c34f0d96deea7015e60f7f8629e30fd3696966 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 10 Jan 2022 18:33:01 -0500 Subject: [PATCH] Fix. cppcheck was wrong about divider being able to go into deeper scope. --- src/zm_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_image.cpp b/src/zm_image.cpp index 99fcf4ee1..1c58130cc 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -3306,9 +3306,9 @@ void neon32_armv7_fastblend(const uint8_t* col1, const uint8_t* col2, uint8_t* r __attribute__((noinline)) void neon64_armv8_fastblend(const uint8_t* col1, const uint8_t* col2, uint8_t* result, unsigned long count, double blendpercent) { #if (defined(__aarch64__) && !defined(ZM_STRIP_NEON)) static double current_blendpercent = 0.0; + static int8_t divider = 0; if (current_blendpercent != blendpercent) { - static int8_t divider = 0; /* Attempt to match the blending percent to one of the possible values */ if(blendpercent < 2.34375) { // 1.5625% blending