* tests/test-regex.c: Compare with explicit zero, rather than
as boolean to avoid this from clang-10:
test-regex.c:315:9: error: converting the result of '<<' to a \
boolean always evaluates to true \
[-Werror,-Wtautological-constant-compare]
if (! REG_STARTEND)
2020-12-29 Jim Meyering <meyering@fb.com>
+ regex-tests: tweak to avoid a clang-10 warning
+ * tests/test-regex.c: Compare with explicit zero, rather than
+ as boolean to avoid this from clang-10:
+ test-regex.c:315:9: error: converting the result of '<<' to a \
+ boolean always evaluates to true \
+ [-Werror,-Wtautological-constant-compare]
+ if (! REG_STARTEND)
+
hash: add casts-to-float to avoid clang-10 warnings
* lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
to avoid this warning from clang-10 (for use in grep):
/* REG_STARTEND was added to glibc on 2004-01-15.
Reject older versions. */
- if (! REG_STARTEND)
+ if (REG_STARTEND == 0)
report_error ("REG_STARTEND is zero");
/* Matching with the compiled form of this regexp would provoke