mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 00:01:16 -03:00
Defeat some miscellaneous warnings in the g++ build
This commit is contained in:
@@ -103,7 +103,6 @@ node_offset_t parse_execution_context_t::get_offset(const parse_node_t &node) co
|
||||
const parse_node_t *addr = &node;
|
||||
const parse_node_t *base = &this->tree.at(0);
|
||||
assert(addr >= base);
|
||||
assert(addr - base < SOURCE_OFFSET_INVALID);
|
||||
node_offset_t offset = static_cast<node_offset_t>(addr - base);
|
||||
assert(offset < this->tree.size());
|
||||
assert(&tree.at(offset) == &node);
|
||||
|
||||
Reference in New Issue
Block a user