Re: avoid compiler warning

2009-11-23 Thread Paolo Bonzini
The compiler warning is bogus. Your patch pessimizes the code; IIRC it can cause runtime-initialization of the pointer. Load-time relocation, to be precise. Paolo

Re: avoid compiler warning

2009-11-23 Thread Paolo Bonzini
On 11/02/2009 08:17 PM, Eric Blake wrote: Even better to post a GCC patch to avoid emitting this warning. I have no idea where to patch that, but I guess I could go ahead and submit the bug report. I'd say the real bug is that it doesn't emit the warning for a char *const. Paolo