|
From: | Angelo Graziosi |
Subject: | Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64 |
Date: | Thu, 1 Sep 2016 17:42:06 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Il 01/09/2016 16:17, Eli Zaretskii ha scritto:
The prototype that fixes this, with 'int' as the return value, is wrong, and is IMO a MinGW64 GCC bug which should be reported. intptr_t is a 64-bit type in MinGW64, while int is still 32 bits. By enforcing the wrong type, GCC contradicts MinGW64's own library headers.
I tested the test case (that using intptr_t) on OSX with gcc-6.1 and it prints the same warning only using 'int' as return type the warning goes away...
[Prev in Thread] | Current Thread | [Next in Thread] |