mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 02:05:30 +08:00
fix some lint warnings
This commit is contained in:
parent
ffdabace5e
commit
d910b7af7d
|
@ -1762,7 +1762,7 @@ struct pager_layout_testcase_t {
|
|||
|
||||
wcstring text = sd.line(0).to_string();
|
||||
if (text != expected) {
|
||||
fwprintf(stderr, L"width %zu got %d<%ls>, expected %d<%ls>\n", this->width,
|
||||
fwprintf(stderr, L"width %zu got %zu<%ls>, expected %zu<%ls>\n", this->width,
|
||||
text.length(), text.c_str(), expected.length(), expected.c_str());
|
||||
for (size_t i = 0; i < std::max(text.length(), expected.length()); i++) {
|
||||
fwprintf(stderr, L"i %zu got <%lx> expected <%lx>\n", i,
|
||||
|
|
|
@ -774,7 +774,7 @@ parse_execution_result_t parse_execution_context_t::handle_command_not_found(
|
|||
this->report_error(statement_node, msg, eval_cmd.c_str());
|
||||
} else if (err_code != ENOENT) {
|
||||
this->report_error(statement_node, _(L"The file '%ls' is not executable by this user"),
|
||||
cmd ? cmd : L"UNKNOWN");
|
||||
cmd);
|
||||
} else {
|
||||
// Handle unrecognized commands with standard command not found handler that can make better
|
||||
// error messages.
|
||||
|
|
Loading…
Reference in New Issue
Block a user