spectre: allow to flag all occurrences
commit7c7e7132e6826a53148efdce73cc4c0482cacaa1
authorNorbert Manthey <nmanthey@amazon.de>
Thu, 5 Jul 2018 11:44:16 +0000 (5 13:44 +0200)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Jul 2018 12:16:04 +0000 (5 15:16 +0300)
tree3c7360b3c76c6c018ce3ac1560ac89fe9726fc89
parentdb523bc63f888a00922a51e5c14a56024b932388
spectre: allow to flag all occurrences

The initial version of the scanner flagged each problematic array only
once. This results in warnings being suppressed, or manual code inspection
where the tool could actually help much more. Therefore, we introduce a
flag that allows to switch between this behavior, or printing all possible
warnings. This way, the manual work is to triage more warnings, but not to
search for further candidates.

Signed-off-by: Norbert Manthey <nmanthey@amazon.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_spectre.c