kernel32: Disable diagnostics when testing corner cases in test_heap().

Erich E. Hoover erich.e.hoover at wine-staging.com
Tue Feb 21 08:03:58 CST 2017


On Sat, Feb 11, 2017 at 2:41 PM, Gerald Pfeifer <gerald at pfeifer.com> wrote:
> ...
> With that dlls/kernel32/tests/heap.c triggers three warnings, all of
> which are correct positives, but in fact do want to test those corner
> cases:

I'm not convinced that this statement is true.  For example, while
"~(SIZE_T)0 - 7" gives us 4294967288 (matching what is indicated by
the warning), HeapReAlloc accepts a SIZE_T.  So, this should support a
maximum value of 4294967295 (not 2147483647).  This says to me that
gcc thinks SIZE_T is a signed value instead of an unsigned value, do
you have any idea why this might be the case?

Best,
Erich



More information about the wine-devel mailing list