pytorch / torchcodec

PyTorch video decoding
BSD 3-Clause "New" or "Revised" License
87 stars 10 forks source link

[codemod] Remove unused-variable in /fbcode/pytorch/torchcodec/src/torchcodec/decoders/_core/VideoDecoder.cpp #334

Closed r-barnes closed 3 weeks ago

r-barnes commented 3 weeks ago

Summary: [codemod] Remove unused-variable in {filename}

LLVM-15 has a warning -Wunused-variable which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance.

This diff either (a) removes an unused variable and, possibly, it's associated code or (b) qualifies the variable with [[maybe_unused]].

buildsonlynotests - Builds are sufficient to verify

Reviewed By: scotts

Differential Revision: D65445691

facebook-github-bot commented 3 weeks ago

This pull request was exported from Phabricator. Differential Revision: D65445691