Fix bugprone-macro-parentheses warnings
Bug: 150783705
Test: WITH_TIDY=1 make
This is a cherry-pick of fa658eb094d915a9640a4d0642adee7667f439e7
Change-Id: If47b7adaa5f3ba3c518fb0be48f0ffdc81d204b2
Merged-In: If47b7adaa5f3ba3c518fb0be48f0ffdc81d204b2
diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h
index 9e214e5..b4556a7 100644
--- a/libc/include/sys/cdefs.h
+++ b/libc/include/sys/cdefs.h
@@ -303,7 +303,7 @@
/* Intended for use in evaluated contexts. */
#define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \
- (bos_val == __BIONIC_FORTIFY_UNKNOWN_SIZE || \
+ ((bos_val) == __BIONIC_FORTIFY_UNKNOWN_SIZE || \
(__builtin_constant_p(index) && bos_val op index && (cond)))
#define __bos_dynamic_check_impl(bos_val, op, index) \