Skip to content

Commit

Permalink
Remove unused exception parameter from fbandroid/native/lionhead/harn…
Browse files Browse the repository at this point in the history
…esses/redex/RedexProguardParserFuzzer.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.

Reviewed By: dmm-fb

Differential Revision: D60515234

fbshipit-source-id: 37a9c18384233eb9fcfe233545166d2c86634f7c
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jul 31, 2024
1 parent e7bbdd3 commit 6b2615d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/model-generator/ModelTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ std::optional<ParameterPosition> TemplateVariableMapping::at(
const std::string& name) const {
try {
return map_.at(name);
} catch (const std::out_of_range& exception) {
} catch (const std::out_of_range&) {
return std::nullopt;
}
}
Expand Down

0 comments on commit 6b2615d

Please sign in to comment.