Re: [PATCH 6/6] New warnings -Wstring-plus-{char, int} (PR c++/62181)

2017-06-19 Thread Martin Sebor
On 06/11/2017 07:39 PM, Xi Ruoyao wrote: This patch adds document of -Wstring-plus-int and -Wstring-plus-char. +@item -Wstring-plus-char +@opindex Wstring-plus-char +@opindex Wno-string-plus-char +Warn for adding a character to a string pointer, which seems like a failed +attempt to append to t

[PATCH 6/6] New warnings -Wstring-plus-{char, int} (PR c++/62181)

2017-06-11 Thread Xi Ruoyao
This patch adds document of -Wstring-plus-int and -Wstring-plus-char. gcc/ChangeLog: 2017-06-12  Xi Ruoyao   * doc/invoke.texi (Warning Options): Document -Wstring-plus-int and -Wstring-plus-char. ---  gcc/doc/invoke.texi | 22 +-  1 file changed, 21 insertions