Re: Wine: Use the compiler option -Wpointer-arith if available.

2011-04-18 Thread Gerald Pfeifer
On Sun, 17 Apr 2011, Michael Stefaniuc wrote: Of course it doesn't triggers in Wine as -Wpointer-arith is already enabled. I made heavy use of that when I did my pointer cast killing spree a few years ago. Of course! I had missed the fact that this was not in the list of regular options,

Re: Wine: Use the compiler option -Wpointer-arith if available.

2011-04-17 Thread Michael Stefaniuc
On 04/17/2011 01:19 AM, Gerald Pfeifer wrote: GCC provides an option -Wpointer-arith and describes it as follows: Warn about anything that depends on the size of a function type or of `void'. GNU C assigns these types a size of 1, for convenience in calculations with `void *'