Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7d8760c authored by Yi Kong's avatar Yi Kong
Browse files

Fix unused-variable warning

The `fixedFpsMode` variable was being redeclared within an `else` block
in `CCodec.cpp`. This shadowed the variable declared in the parent
scope, causing the new local variable to be unused and triggering a
compiler warning.

This change removes the redundant `bool` type specifier, ensuring the
statement correctly assigns a new value to the existing variable
instead of creating a new one. This resolves the unused-variable
warning.

The change is generated by Gemini.

Test: presubmit
Bug: 315246135
Flag: EXEMPT, warning cleanup
Change-Id: I708bd9709c12569ac3c3a703bcffd3426d04cb72
parent 3fc9ec18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -249,7 +249,7 @@ public:
                params.push_back(gap.get());
                mConfig.mMinAdjustedFps = config.mMinAdjustedFps;
            } else {
                bool fixedFpsMode = true;
                fixedFpsMode = true;
                float fixedGap = c2_max(0. - INT32_MAX, -1e6 / config.mFixedAdjustedFps - 0.5);
                uint64_t gapUs = int32_t(fixedGap);
                gap = std::make_shared<C2PortTimestampGapTuning::output>(