From 5bf1b0e5f500b6b99a866da32dd9002219cac6d6 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 28 May 2016 22:28:26 -0700 Subject: fix random lint issues This only eliminates errors reported by `make lint`. It shouldn't cause any functional changes. This change does remove several functions that are unused. It also removes the `desc_arr` variable which is both unused and out of date with reality. --- src/env_universal_common.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/env_universal_common.cpp') diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp index bb5b759b..c1b7c46c 100644 --- a/src/env_universal_common.cpp +++ b/src/env_universal_common.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -311,7 +312,7 @@ void env_universal_t::set_internal(const wcstring &key, const wcstring &val, boo } void env_universal_t::set(const wcstring &key, const wcstring &val, bool exportv) { - scoped_lock locker(lock); + scoped_lock locker(lock); //!OCLINT(side-effect) this->set_internal(key, val, exportv, true /* overwrite */); } @@ -331,7 +332,7 @@ bool env_universal_t::remove(const wcstring &key) { wcstring_list_t env_universal_t::get_names(bool show_exported, bool show_unexported) const { wcstring_list_t result; - scoped_lock locker(lock); + scoped_lock locker(lock); //!OCLINT(side-effect) var_table_t::const_iterator iter; for (iter = vars.begin(); iter != vars.end(); ++iter) { const wcstring &key = iter->first; -- cgit v1.2.3