[openssl/openssl] 76b0b7: test: placate Clang's --Wbitwise-instead-of-logical
Sam James
noreply at github.com
Wed Aug 24 11:31:07 UTC 2022
Branch: refs/heads/openssl-3.0
Home: https://github.com/openssl/openssl
Commit: 76b0b7627c7af7533033d9971b476acbbc432799
https://github.com/openssl/openssl/commit/76b0b7627c7af7533033d9971b476acbbc432799
Author: Sam James <sam at gentoo.org>
Date: 2022-08-24 (Wed, 24 Aug 2022)
Changed paths:
M test/test_test.c
Log Message:
-----------
test: placate Clang's --Wbitwise-instead-of-logical
```
test/test_test.c:58:9: note: cast one or both operands to int to silence this warning
test/test_test.c:58:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
if (!TEST(1, TEST_uint_eq(3u, 3u))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test/test_test.c:58:9: note: cast one or both operands to int to silence this warning
```
Originally the fix for #18639
Fixes #19024
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19045)
More information about the openssl-commits
mailing list