On Wed, Sep 19, 2018 at 4:25 PM, Marek Polacek wrote:
> On Wed, Sep 19, 2018 at 04:14:25PM -0400, Jason Merrill wrote:
>> On Wed, Sep 19, 2018 at 3:44 PM, Marek Polacek wrote:
>> > On Wed, Sep 19, 2018 at 09:40:05PM +0200, Florian Weimer wrote:
>> >> Marek Polacek writes:
>> >>
>> >> > +@item -W
On Wed, Sep 19, 2018 at 04:14:25PM -0400, Jason Merrill wrote:
> On Wed, Sep 19, 2018 at 3:44 PM, Marek Polacek wrote:
> > On Wed, Sep 19, 2018 at 09:40:05PM +0200, Florian Weimer wrote:
> >> Marek Polacek writes:
> >>
> >> > +@item -Wno-class-conversion @r{(C++ and Objective-C++ only)}
> >> > +@
On Wed, Sep 19, 2018 at 3:44 PM, Marek Polacek wrote:
> On Wed, Sep 19, 2018 at 09:40:05PM +0200, Florian Weimer wrote:
>> Marek Polacek writes:
>>
>> > +@item -Wno-class-conversion @r{(C++ and Objective-C++ only)}
>> > +@opindex Wno-class-conversion
>> > +@opindex Wclass-conversion
>> > +Disable
On Wed, Sep 19, 2018 at 09:40:05PM +0200, Florian Weimer wrote:
> Marek Polacek writes:
>
> > +@item -Wno-class-conversion @r{(C++ and Objective-C++ only)}
> > +@opindex Wno-class-conversion
> > +@opindex Wclass-conversion
> > +Disable the warning about user-defined conversions converting a class
Marek Polacek writes:
> +@item -Wno-class-conversion @r{(C++ and Objective-C++ only)}
> +@opindex Wno-class-conversion
> +@opindex Wclass-conversion
> +Disable the warning about user-defined conversions converting a class to
> +the wrong type, such as having a conversion function converting an
>
This patch adds a new warning -Wclass-conversion that is on by default, and
warns about conversion functions converting a class to the wrong type. This
was under the -Wconversion umbrella, but we should warn about this by default.
It also makes the warning print the types in question.
Bootstrapp