Fine grain control over -Wconversion?

Hi all,

I maintain a few buildbots for open source projects and have taken the approach of using -Weverything then -Wno-foobar to disable some warnings.

Recently one clang bot had a -Wundefined-bool-conversion warning that my bot didn't. The reason is that I have '-Weverything -Wno-conversion' in there.

So I set about trying to get finer grain control. I tried:

-Weverything -Wno-sign-conversion -Wno-shorten-64-to-32 -Wno-float-conversion

but I still get many warnings of the form:

implicit conversion loses floating-point precision: 'double' to 'float' [-Wconversion]

for which I guess -Wno-conversion is the only way to turn them off? But if I do, I lose -Wundefined-bool-conversion and maybe others...

Thanks,

"Sean McBride" <sean@rogue-research.com> writes:

I maintain a few buildbots for open source projects and have taken the
approach of using -Weverything then -Wno-foobar to disable some
warnings.

Recently one clang bot had a -Wundefined-bool-conversion warning that
my bot didn't. The reason is that I have '-Weverything
-Wno-conversion' in there.

So I set about trying to get finer grain control. I tried:

-Weverything -Wno-sign-conversion -Wno-shorten-64-to-32 -Wno-float-conversion

but I still get many warnings of the form:

implicit conversion loses floating-point precision: 'double' to
'float' [-Wconversion]

for which I guess -Wno-conversion is the only way to turn them off?
But if I do, I lose -Wundefined-bool-conversion and maybe others...

This isn't exactly what you want, but I guess you could say:

    -Weverything -Wno-conversion -Wundefined-bool-conversion