From a6730727d13fcbfa123c904aef4bc381db6d994d Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 20 Nov 2025 10:55:31 -0800 Subject: [PATCH] [codemod][lowrisk] Remove unused exception parameter from multifeed/leaf5/common/lib/OpenBarUtils.cpp Summary: `-Wunused-exception-parameter` has identified an unused exception parameter. This diff removes it. This: ``` try { ... } catch (exception& e) { // no use of e } ``` should instead be written as ``` } catch (exception&) { ``` If the code compiles, this is safe to land. Differential Revision: D87467931 --- src/torchcodec/_core/SingleStreamDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torchcodec/_core/SingleStreamDecoder.cpp b/src/torchcodec/_core/SingleStreamDecoder.cpp index ac7489bbe..6968a4b3f 100644 --- a/src/torchcodec/_core/SingleStreamDecoder.cpp +++ b/src/torchcodec/_core/SingleStreamDecoder.cpp @@ -1039,7 +1039,7 @@ AudioFramesOutput SingleStreamDecoder::getFramesPlayedInRangeAudio( firstFramePtsSeconds = frameOutput.ptsSeconds; } frames.push_back(frameOutput.data); - } catch (const EndOfFileException& e) { + } catch (const EndOfFileException&) { finished = true; }