Re: [Qemu-devel] tracetool: cast const types to avoid compile time warnings

2012-03-22 Thread Stefan Hajnoczi
On Wed, Mar 21, 2012 at 05:08:15PM +, Lee Essen wrote: On Solaris/Illumos dtrace will remove the const qualifier from any arguments when producing the header file, this results in hundreds of compile-time warnings. I wonder why DTrace does this, it seems wrong. If anything it should be

Re: [Qemu-devel] tracetool: cast const types to avoid compile time warnings

2012-03-22 Thread Lee Essen
On 22/03/2012 08:28, Stefan Hajnoczi wrote: On Wed, Mar 21, 2012 at 05:08:15PM +, Lee Essen wrote: On Solaris/Illumos dtrace will remove the const qualifier from any arguments when producing the header file, this results in hundreds of compile-time warnings. I wonder why DTrace does this,

[Qemu-devel] tracetool: cast const types to avoid compile time warnings

2012-03-21 Thread Lee Essen
On Solaris/Illumos dtrace will remove the const qualifier from any arguments when producing the header file, this results in hundreds of compile-time warnings. I have put together a patch to tracetool to cast any const argument appropriately to remove the warnings, but I don't know how it