summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2023-01-11 14:20:04 -0800
committerChih-Hung Hsieh <chh@google.com>2023-01-11 14:20:04 -0800
commit75349aab31082af7e496c528d2529bd905fdd12d (patch)
tree7193771ec8656f1616b708e11d7cc59b1a3ae330
parentd64959e2f2b4c46e035af862166d1836d8d717a1 (diff)
downloadLegacyCamera-75349aab31082af7e496c528d2529bd905fdd12d.tar.gz
Suppress clang-analyzer-security.FloatLoopCounter warnings
* Suppress also the alias check name cert-flp30-c. * Leave comment in code for code owners to rewrite the loop with integer counters. Bug: 265171053 Test: presubmit; tidy-packages-apps-LegacyCamera_subset Change-Id: Ibda6e6174656b8ca31fad95882e0acc740097899
-rw-r--r--jni/feature_stab/src/dbreg/dbstabsmooth.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
index dffff8ab..d2e7a283 100644
--- a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
+++ b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp
@@ -136,6 +136,8 @@ bool db_StabilizationSmoother::smoothMotionAdaptive(/*VP_BIMG *bimg,*/int hsize,
smoothFactor = minSmoothFactor;
// Find the amount of motion that must be compensated so that no "border" pixels are seen in the stable video
+ // FixLater: avoid floating point loop counters
+ // NOLINTNEXTLINE(clang-analyzer-security.FloatLoopCounter,cert-flp30-c)
for (smoothFactor = smoothFactor; smoothFactor >= minSmoothFactor; smoothFactor -= 0.01) {
// Compute the smoothed motion
if(!smoothMotion(inmot, &tmpMotion, smoothFactor))