Task #135790 - added.err

back to task #135790
download
Error: COMPILER_WARNING (CWE-569):
389-ds-base-3.3.0.202608190313gitff1fadaed/ldap/servers/slapd/back-ldbm/ldbm_search.c: scope_hint: In function 'ldbm_search_substring_shrink_blanks'
389-ds-base-3.3.0.202608190313gitff1fadaed/ldap/servers/slapd/back-ldbm/ldbm_search.c:439:21: warning[-Wparentheses]: suggest parentheses around comparison in operand of '&'
#  439 |     if (trim_spaces & (SHRINK_LEADING_BLANK | TRIM_LEADING_BLANK) == 0) {
#      |                     ^
#  437|       }
#  438|   
#  439|->     if (trim_spaces & (SHRINK_LEADING_BLANK | TRIM_LEADING_BLANK) == 0) {
#  440|           /* Do not trim leading spaces */
#  441|           ctx.first_non_space = 0;

Error: COMPILER_WARNING (CWE-569):
389-ds-base-3.3.0.202608190313gitff1fadaed/ldap/servers/slapd/back-ldbm/ldbm_search.c:444:21: warning[-Wparentheses]: suggest parentheses around comparison in operand of '&'
#  444 |     if (trim_spaces & (SHRINK_TRAILING_BLANK | TRIM_TRAILING_BLANK) == 0) {
#      |                     ^
#  442|       }
#  443|   
#  444|->     if (trim_spaces & (SHRINK_TRAILING_BLANK | TRIM_TRAILING_BLANK) == 0) {
#  445|           /* Do not trim trailing spaces */
#  446|           ctx.first_trailing_space = ctx.len;