On Thu, 3 Feb 2022 at 18:46, Krishna Narayanan via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > Respected Sir/Madam, > I have been working on an issue (bug 62181) [C/C++] Expected new warning: > "adding 'char' to a string does not append to the string" > [-Wstring-plus-int].This is asking for a warning being added to gcc for > such a case.Not using concat and indexing which were mentioned earlier as a > solution to the warning I tried the example given in https://godbolt.org/ > and was trying different permutations of addresses and pointers in clang > and gcc (trunk), I am not sure but I tried '-w' in compiler flags and it > worked fine for both clang and gcc ,it did not show any warning. -w means disables all warnings, so of course you didn't get any warnings when you use it! See the GCC manual. https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html