[cfe-commits] Fix clang warning "adding bool to string".
Nico Weber
thakis at chromium.org
Mon Mar 5 07:53:30 PST 2012
r152030, thanks.
On Sun, Mar 4, 2012 at 8:32 AM, Sean Silva <silvas at purdue.edu> wrote:
> Fixes the following warning from Clang:
>
> /home/sean/pg/others/llvm/source/tools/clang/lib/Rewrite/RewriteMacros.cpp:170:40:
> warning: adding 'bool' to a string does not append to the string
> [-Wstring-plus-int]
> RB.InsertTextAfter(RawOffs, " /*"+HasSpace);
> ~~~~~^~~~~~~~~
> /home/sean/pg/others/llvm/source/tools/clang/lib/Rewrite/RewriteMacros.cpp:170:40:
> note: use array indexing to silence this warning
> RB.InsertTextAfter(RawOffs, " /*"+HasSpace);
> ^
> & [ ]
> 1 warning generated.
>
> --Sean Silva
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
More information about the cfe-commits
mailing list