Skip to content

Commit 06c8440

Browse files
amosbirdfaho
authored andcommitted
fix compile error on gcc 7.3
1 parent 228c5c1 commit 06c8440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/complete.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ bool completer_t::complete_param(const wcstring &scmd_orig, const wcstring &spop
868868
// Only reload environment variables if builtin_exists returned false, as an optimization
869869
if (head_exists == false) {
870870
run_on_main_thread([&completion_snapshot] () {
871-
completion_snapshot = std::move(env_vars_snapshot_t( (wchar_t const * []) { L"fish_function_path", nullptr } ));
871+
completion_snapshot = std::move(env_vars_snapshot_t( (wchar_t const * const []) { L"fish_function_path", nullptr } ));
872872
});
873873
}
874874

0 commit comments

Comments
 (0)