mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 01:11:15 -03:00
lint cleanup: parameter reassignment
This commit is contained in:
@@ -107,6 +107,7 @@ demangled_backtrace(int max_frames, int skip_levels) {
|
||||
void __attribute__((noinline))
|
||||
show_stackframe(const wchar_t msg_level, int frame_count, int skip_levels) {
|
||||
ASSERT_IS_NOT_FORKED_CHILD();
|
||||
if (frame_count < 1) return;
|
||||
|
||||
// TODO: Decide if this is still needed. I'm commenting it out because it caused me some grief
|
||||
// while trying to debug a test failure. And the tests run just fine without spurious failures
|
||||
@@ -115,7 +116,6 @@ show_stackframe(const wchar_t msg_level, int frame_count, int skip_levels) {
|
||||
// Hack to avoid showing backtraces in the tester.
|
||||
// if (program_name && !wcscmp(program_name, L"(ignore)")) return;
|
||||
|
||||
if (frame_count < 1) frame_count = 999;
|
||||
debug_shared(msg_level, L"Backtrace:");
|
||||
std::vector<wcstring> bt = demangled_backtrace(frame_count, skip_levels + 2);
|
||||
for (int i = 0; (size_t)i < bt.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user