From c260c1259e82d70b33698cb56ea4bae30e5bc38d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 21 Aug 2022 14:43:28 -0700 Subject: [PATCH] Stop exporting kDefaultPath This is used only within path.cpp; make it a static. --- src/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.cpp b/src/path.cpp index 9561a05b4..f33c8934d 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -26,7 +26,7 @@ #include "wutil.h" // IWYU pragma: keep // PREFIX is defined at build time. -const wcstring_list_t kDefaultPath({L"/bin", L"/usr/bin", PREFIX L"/bin"}); +static const wcstring_list_t kDefaultPath({L"/bin", L"/usr/bin", PREFIX L"/bin"}); static get_path_result_t path_get_path_core(const wcstring &cmd, const wcstring_list_t &pathsv) { const get_path_result_t noent_res{ENOENT, wcstring{}};