[Buildbot-devel] Suppression of selected warnings in Compile build step

Kristian Nielsen knielsen at knielsen-hq.org
Tue Aug 18 11:25:15 UTC 2009


Hi,

I implemented a new feature for the `Compile' BuildStep that adds a parameter
suppressionFile=. This can be used to ignore selected warnings from the
compiler by file name, warning text, and/or line number.

We use this in MySQL and MariaDB. We want to fix most compiler warnings (as
they indicate real or potential problems), but we cannot fix _all_ of them for
various reasons (maybe a special module or the compiler being stupid in
certain cases). By suppressing those few that cannot be fixed, we are still
able to catch any newly introduced warnings and fix them.

The list of warnings to suppress is uploaded to the master from the source
checkout; this is important to properly maintain the correct list of
suppressions with the right revision of the source (though the implementation
also allows adding warnings by calling into the BuildStep object on the master
side).

Since this is in no way specific to MySQL/MariaDB, I also submitted a pull
request for the github branch for inclusion in main Buildbot, in case it could
be useful to others:

    repo: git://github.com/knielsen/buildbot.git
    branch: warning-suppression

Full documentation is included in the patch.

 - Kristian.




More information about the devel mailing list