A local variable is declared register
What it finds
register int i;: compilers choose registers on their own, so the keyword only forbids taking the variable's address. Variables bound to a register with asm are left alone.
From the rule's source, register_storage.rs.
Turn it on, off or suppress it
The rule runs from the all tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/cpp:register-storage" = "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/cpp:register-storage] reason="..."tx0 explain tx0/cpp:register-storage shows the same in the terminal. Found a false positive? Report it.