silence two more compiler warnings

This commit is contained in:
leitner
2020-05-25 15:06:49 +00:00
parent fe4e6870de
commit 1cb3d7807a
2 changed files with 4 additions and 1 deletions

View File

@@ -235,7 +235,9 @@ stringmain:
if (*fmt=='c') {
if (tc!=PRIVATE || tt!=CONSTRUCTED)
goto error;
*desttag=tag;
*desttag=tag; // gcc -fanalyzer gives a false positive here.
// if we get here, *fmt was 'c' and we came in via the "case 'c'"
// above which set desttag to something the caller provided.
} else {
if (tc!=UNIVERSAL || tt!=CONSTRUCTED || tag!=(*fmt=='{'?SEQUENCE_OF:SET_OF))
goto error;

View File

@@ -101,6 +101,7 @@ size_t scan_ldapsearchfilter(const char* src,const char* max,struct Filter** f)
res+=len;
break;
case 9: /* extensibleMatch [9] MatchingRuleAssertion } */
default:
goto error;
}
return res;