assert(a && b) --> assert(a); assert(b)

Separate each statement of the form "assert(a && b);" into "assert(a);"
and "assert(b);" for more precise diagnostics, except for this clever
use in drmmode_display.c where it was used to pass a hint to developers:

	assert(num_infos <= 32 && "update return type");
This commit is contained in:
Adam Richter
2019-05-02 15:02:36 -07:00
parent dd1aebccf2
commit 9d25408a59
11 changed files with 45 additions and 23 deletions

View File

@@ -1105,7 +1105,8 @@ cmp_attr_fields(InputAttributes * attr1, InputAttributes * attr2)
{
char **tags1, **tags2;
assert(attr1 && attr2);
assert(attr1);
assert(attr2);
assert(attr1 != attr2);
assert(attr1->flags == attr2->flags);