From adbb33ca2fb9a52cd5a497618d423a355d24d1c7 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 11 Sep 2017 10:23:32 +0200 Subject: [PATCH] Wrap macro arguments in parentheses Found by clang-tidy. --- pick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pick.c b/pick.c index a1c52720..ca7ecf50 100644 --- a/pick.c +++ b/pick.c @@ -29,7 +29,7 @@ #include "compat.h" #define tty_putp(capability, fatal) do { \ - if (tputs(capability, 1, tty_putc) == ERR && fatal) \ + if (tputs((capability), 1, tty_putc) == ERR && (fatal)) \ errx(1, #capability ": unknown terminfo capability"); \ } while (0)