Comment 33 for bug 992124

Alex Valavanis (valavanisalex) wrote :

A lot of the new [-Wmismatched-tags] warnings in the build log come from dodgy forward declarations where something that is really a class is declared as a struct or vice-versa. Strictly, it's not great to allow this, because class and struct imply different levels of default privacy (class="private by default"; struct="public by default"), so we shouldn't really get rid of the warning.

The good news is that these are easy fixes, and that a lot of it is duplicated. i.e., simply changing "class" for "struct" in one line of code in a widely-used header could fix thousands of these warnings.