mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-25 19:10:46 +00:00
Pacify clang 14 -Wbitwise-conditional-parentheses
* src/common.h (add_printf): * src/sparse.c (decode_num): Parenthesize to pacify Apple clang version 14.0.0 (clang-1400.0.29.202).
This commit is contained in:
@@ -501,7 +501,7 @@ COMMON_INLINE intmax_t
|
||||
add_printf (intmax_t a, intmax_t b)
|
||||
{
|
||||
intmax_t sum;
|
||||
return (a < 0) | (b < 0) | ckd_add (&sum, a, b) ? -1 : sum;
|
||||
return ((a < 0) | (b < 0) | ckd_add (&sum, a, b)) ? -1 : sum;
|
||||
}
|
||||
|
||||
/* Module create.c. */
|
||||
|
||||
@@ -1255,7 +1255,7 @@ decode_num (struct block_ptr bp, uintmax_t nmax, struct tar_sparse_file *file)
|
||||
|
||||
overflow |= nmax < n;
|
||||
char const *msgid
|
||||
= (!digit_seen | nondigit_seen ? N_("%s: malformed sparse archive member")
|
||||
= ((!digit_seen | nondigit_seen) ? N_("%s: malformed sparse archive member")
|
||||
: overflow ? N_("%s: numeric overflow in sparse archive member")
|
||||
: NULL);
|
||||
if (msgid)
|
||||
|
||||
Reference in New Issue
Block a user