cf_gen.cc:... warning: comparison of array 'buff' not equal to a
null pointer is always true [-Wtautological-pointer-compare]
These conditions are not just always true but a bit odd or misleading
because they check the pointer after it was dereferenced. They were
added in
c1f8bbd which misinterpreted the "else" conditions. The two
"regular DOC/CONFIG line" conditions are self-documented well enough.
} else if (!strcmp(buff, "NOCOMMENT_START")) {
state = sNOCOMMENT;
} else { // if (buff != NULL) {
- assert(buff != NULL);
entries.back().doc.push_back(buff);
}
break;
if (!strcmp(buff, "NOCOMMENT_END")) {
state = sDOC;
} else { // if (buff != NULL) {
- assert(buff != NULL);
entries.back().nocomment.push_back(buff);
}
break;