main is defined with parameters other than none, (int, char **) or (int, char **, char **)

tx0/c:main-parameters-unusualrecommendedwarningreliability/logicdepth fastbug

What it finds

int main(char *arg) or int main(int argc): the standard defines main with no parameters or with an int count and an array of strings; with other parameters the behaviour depends on the implementation, and the program reads garbage.

From the rule's source, main_parameters_unusual.rs.

Example from the rule's tests
int main(int argc)tx0 reports: main takes parameters that the standard does not define for it{  return argc;}
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:main-parameters-unusual" = "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:main-parameters-unusual] reason="..."

tx0 explain tx0/c:main-parameters-unusual shows the same in the terminal. Found a false positive? Report it.