[llvm-commits] Remove warning "adding bool to string".
Sean Silva
silvas at purdue.edu
Sun Mar 4 08:23:54 PST 2012
The attached patch fixes these two warnings from clang:
/home/sean/pg/others/llvm/source/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:4506:21:
warning: adding 'bool' to a string does not append to the string
[-Wstring-plus-int]
return "_setjmp"+!TLI.usesUnderscoreSetJmp();
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sean/pg/others/llvm/source/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:4506:21:
note: use array indexing to silence this warning
return "_setjmp"+!TLI.usesUnderscoreSetJmp();
^
& [ ]
/home/sean/pg/others/llvm/source/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:4508:22:
warning: adding 'bool' to a string does not append to the string
[-Wstring-plus-int]
return "_longjmp"+!TLI.usesUnderscoreLongJmp();
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sean/pg/others/llvm/source/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:4508:22:
note: use array indexing to silence this warning
return "_longjmp"+!TLI.usesUnderscoreLongJmp();
^
& [ ]
2 warnings generated.
--Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120304/6b899c6d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unwarn.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120304/6b899c6d/attachment.bin>
More information about the llvm-commits
mailing list