diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-09-19 15:10:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-20 15:00:41 +0900 |
commit | 5de3de329ac2fafa4b5762a6d0384312897793e5 (patch) | |
tree | 95e3c737eec70018e6ad6bd3b546d3c03be3144f /mergetools/examdiff | |
parent | add UNLEAK annotation for reducing leak false positives (diff) | |
download | tgif-5de3de329ac2fafa4b5762a6d0384312897793e5.tar.xz |
git-compat-util: make UNLEAK less error-prone
Commit 0e5bba5 ("add UNLEAK annotation for reducing leak false
positives", 2017-09-08) introduced an UNLEAK macro to be used as
"UNLEAK(var);", but its existing definitions leave semicolons that act
as empty statements, which will lead to syntax errors, e.g.
if (condition)
UNLEAK(var);
else
something_else(var);
would be broken with two statements between if (condition) and else.
Lose the excess semicolon from the end of the macro replacement text.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools/examdiff')
0 files changed, 0 insertions, 0 deletions