A header is included that is obsolete or specific to one system, with a standard replacement
What it finds
#include <varargs.h> or <malloc.h>: these headers predate the standard or belong to one system; compilers have removed some of them, and others declare only what a standard header declares too.
From the rule's source, obsolete_header.rs.
#include <varargs.h>tx0 reports: <varargs.h> is obsolete; use <stdarg.h>#include <stdio.h> Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/c:obsolete-header" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/c:obsolete-header] reason="..."tx0 explain tx0/c:obsolete-header shows the same in the terminal. Found a false positive? Report it.