Re: [PATCH 2/5] c++: New warning option -Wstring-plus-int

2017-04-28 Thread Xi Ruoyao
On 2017-04-28 14:34 -0600, Jeff Law wrote: > Can you use TYPE_MAIN_VARIANT (type) here rather than building a new type? I'll check the macros. > Formatting problems should be obvious :-) I'll follow the GCC formatting rules. > I think Jason probably needs to chime in on this patch.  I'm not ke

Re: [PATCH 2/5] c++: New warning option -Wstring-plus-int

2017-04-28 Thread Jeff Law
On 02/22/2017 04:01 AM, Xi Ruoyao wrote: This patch adds warning option -Wstring-plus-int for C++. gcc/ChangeLog: 2017-02-22 Xi Ruoyao * c-family/c-common.h (maybe_warn_string_plus_int): new prototype * c-family/c-warn.h (maybe_warn_string_plus_int): new function * c

[PATCH 2/5] c++: New warning option -Wstring-plus-int

2017-02-22 Thread Xi Ruoyao
This patch adds warning option -Wstring-plus-int for C++. gcc/ChangeLog: 2017-02-22  Xi Ruoyao   * c-family/c-common.h (maybe_warn_string_plus_int): new prototype * c-family/c-warn.h (maybe_warn_string_plus_int): new function * c-family/c-opt: new option -Wstring-plus-int