A header is included that is obsolete or specific to one system, with a standard replacement

tx0/c:obsolete-headerrecommendedwarningreliability/api-misusedepth fastmaintainability

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.

Example from the rule's tests
#include <varargs.h>tx0 reports: <varargs.h> is obsolete; use <stdarg.h>#include <stdio.h>
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

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:

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.