[llvm-commits] Suppress an MSVC warning in C code

David Blaikie dblaikie at gmail.com
Sat Sep 24 20:59:52 PDT 2011


Seems MSVC's const conversion warning for C code doesn't understand multiple
layers of indirection very well so it warns about mutating a non-const
pointer to const (well, passing it to a non-const void* parameter in this
case). So here's a simple fix (adding a couple of casts & a couple of
comments to explain them) for an instance of this in libprofile.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110924/28eb3a12/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvc_warning.diff
Type: text/x-patch
Size: 912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110924/28eb3a12/attachment.bin>


More information about the llvm-commits mailing list