mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 09:21:16 -03:00
simplify oclint error suppression for scoped_lock
This commit is contained in:
@@ -38,7 +38,7 @@ static const wchar_t *intern_with_dup(const wchar_t *in, bool dup) {
|
||||
if (!in) return NULL;
|
||||
|
||||
debug(5, L"intern %ls", in);
|
||||
scoped_lock lock(intern_lock); //!OCLINT(has side effects)
|
||||
scoped_lock locker(intern_lock);
|
||||
const wchar_t *result;
|
||||
|
||||
#if USE_SET
|
||||
|
||||
Reference in New Issue
Block a user