diff --git a/.clang-tidy b/.clang-tidy index 0f0dc3fd2..a3daf4dd2 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,5 @@ --- -Checks: 'clang-diagnostic-*,clang-analyzer-*,cert-*,performance-*,portability-*,modernize-use-auto,modernize-loop-convert' +Checks: 'clang-diagnostic-*,clang-analyzer-*,cert-*,performance-*,portability-*,modernize-use-auto,modernize-loop-convert,modernize-use-bool-literals' WarningsAsErrors: '' HeaderFilterRegex: '' AnalyzeTemporaryDtors: false diff --git a/src/proc.cpp b/src/proc.cpp index a050e9e66..d19d08056 100644 --- a/src/proc.cpp +++ b/src/proc.cpp @@ -428,7 +428,7 @@ static void process_mark_finished_children(parser_t &parser, bool block_ok) { assert(pid == proc->pid && "Unexpcted waitpid() return"); handle_child_status(proc.get(), proc_status_t::from_waitpid(status)); if (proc->status.stopped()) { - j->mut_flags().foreground = 0; + j->mut_flags().foreground = false; } if (proc->status.normal_exited() || proc->status.signal_exited()) { FLOGF(proc_reap_external,