mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
Mark some variables as unused
These triggered warnings.
This commit is contained in:
parent
39099ceb10
commit
1259b32ecc
2 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,7 @@ bool parse_execution_context_t::should_cancel_execution(const block_t *block) co
|
||||||
|
|
||||||
parse_execution_context_t::execution_cancellation_reason_t
|
parse_execution_context_t::execution_cancellation_reason_t
|
||||||
parse_execution_context_t::cancellation_reason(const block_t *block) const {
|
parse_execution_context_t::cancellation_reason(const block_t *block) const {
|
||||||
|
UNUSED(block);
|
||||||
if (shell_is_exiting()) {
|
if (shell_is_exiting()) {
|
||||||
return execution_cancellation_exit;
|
return execution_cancellation_exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,6 +150,7 @@ namespace {
|
||||||
/// Test if the given string contains error. Since this is the error detection for general purpose,
|
/// Test if the given string contains error. Since this is the error detection for general purpose,
|
||||||
/// there are no invalid strings, so this function always returns false.
|
/// there are no invalid strings, so this function always returns false.
|
||||||
parser_test_error_bits_t default_test(parser_t &parser, const wcstring &b) {
|
parser_test_error_bits_t default_test(parser_t &parser, const wcstring &b) {
|
||||||
|
UNUSED(parser);
|
||||||
UNUSED(b);
|
UNUSED(b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue