diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-08-27 10:02:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-07 11:07:59 -0700 |
commit | 326460a8700c4bc025578da18509c77f72928950 (patch) | |
tree | d6f75cc796a21d63f3c906bd62ac2d75e438a121 /sha256/block | |
parent | tr2: leave the parent list empty upon failure & don't leak memory (diff) | |
download | tgif-326460a8700c4bc025578da18509c77f72928950.tar.xz |
tr2: do compiler enum check in trace2_collect_process_info()
Change code added in 2f732bf15e6 (tr2: log parent process name,
2021-07-21) to use a switch statement without a "default" branch to
have the compiler error if this code ever drifts out of sync with the
members of the "enum trace2_process_info_reason".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha256/block')
0 files changed, 0 insertions, 0 deletions