diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-06-29 12:26:05 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-06-29 12:26:05 -0700 |
commit | 3ac940f03199ef04fa98c6829b32bc14e7867d0b (patch) | |
tree | c88f3d5c1e454b9a8f08a571275cab9a3b1bb0a4 | |
parent | 3e647a63cb9b9a70d967643d86c711b530fb4e73 (diff) | |
download | rs-3ac940f03199ef04fa98c6829b32bc14e7867d0b.tar.gz |
Fix misc-macro-parentheses warnings in frameworks/rs.
Add parentheses around parameters beside operators.
Bug: 28705665
Test: build with clang-tidy
Change-Id: I8d45fca79de56ef0f110dcef3c6284c25b09694b
-rw-r--r-- | cpp/rsCppInternal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/rsCppInternal.h b/cpp/rsCppInternal.h index 69857d77..c51f7a0a 100644 --- a/cpp/rsCppInternal.h +++ b/cpp/rsCppInternal.h @@ -24,12 +24,12 @@ #include "rsDispatch.h" #define tryDispatch(rs, dispatch) \ - if (rs->getError() == RS_SUCCESS) { \ + if ((rs)->getError() == RS_SUCCESS) { \ dispatch; \ } #define createDispatch(rs, dispatch) \ - rs->getError() == RS_SUCCESS ? dispatch : nullptr + rs->getError() == RS_SUCCESS ? (dispatch) : nullptr #undef LOG_TAG #undef LOG_NDEBUG |