Mark some variables as unused

These triggered warnings.
This commit is contained in:
Fabian Homborg 2019-05-29 20:39:09 +02:00
parent 39099ceb10
commit 1259b32ecc
2 changed files with 2 additions and 0 deletions

View file

@ -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;
} }

View file

@ -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;
} }