Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 883 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 883 Bytes

Warning Stats

Get a summary of warnings found by your toolchain when building your project.

Requirements

  • Python 3.10

Installation

Clone this repository and put it somewhere (for example ~/warning_stats).

Install the pip package warning-parser:

pip install warning-parser

Ensure that you can run the tool:

~/warning_stats/warning_stats.py --help

Usage

Remove the -werror flag temporarly for your project in order to not treat warnings as errors since we want to get a list of all warnings.

Make a full build of your project and redirect the output to stderr into a file. Perhaps something like this:

make clean
make 2> warnings.txt

Now, run this tool on the generated file:

~/warning_stats/warning_stats.py warnings.txt

Now you should see a summary of all the warnings found while building your project.