Hello, gcc 8.3 for file mingw-w64-headers/include/psdk_inc/intrin-impl.h
throws 300 lines of preprocessor warnings: "defined" may not be portable.
It can be reproduced just by calling cpp on that file with parameters:
-D__MINGW_INTRIN_INLINE -Wall -Wextra
$ i686-w64-mingw32-cpp mingw-w64-headers
On Wednesday 31 July 2024 00:13:24 LIU Hao wrote:
> 在 2024-07-29 02:58, Pali Rohár 写道:
> > In file included from mingw-w64-headers/include/d2d1.h:20,
> > from mingw-w64-headers/include/d2d1_1.h:10,
> > from libsrc/uuid.c:29:
> > mingw-w64-headers/include/d2derr.h
On Wednesday 31 July 2024 00:13:24 LIU Hao wrote:
> 在 2024-07-29 02:58, Pali Rohár 写道:
> > In file included from libsrc/wspiapi/WspiapiLoad.c:7:
> > libsrc/wspiapi/WspiapiLoad.c: In function ‘WspiapiLoad’:
> > mingw-w64-headers/include/wspiapi.h:50:20: warning: cast between
> > incompatible functi
On Wednesday 31 July 2024 00:13:24 LIU Hao wrote:
> 在 2024-07-29 02:58, Pali Rohár 写道:
> > profile/profil.c: In function ‘profile_on’:
> > profile/profil.c:140:36: warning: cast between incompatible function types
> > from ‘void (__attribute__((stdcall)) *)(void *)’ to ‘DWORD
> > (__attribute__((
On Wednesday 31 July 2024 00:13:24 LIU Hao wrote:
> 在 2024-07-29 02:58, Pali Rohár 写道:
> > ssp/gets_chk.c: In function ‘__gets_chk’:
> > ssp/gets_chk.c:20:12: warning: call to ‘gets’ declared with attribute
> > warning: Using gets() is always unsafe - use fgets() instead
> > return gets(dst)
On Wednesday 31 July 2024 00:13:24 LIU Hao wrote:
> 在 2024-07-29 02:58, Pali Rohár 写道:
> > misc/imaxdiv.c:34:1: warning: ‘lldiv’ alias between functions of
> > incompatible types ‘lldiv_t(long long int, long long int)’ {aka ‘struct
> > (long long int, long long int)’} and ‘imaxdiv_t(intmax_t,
On Wednesday 31 July 2024 00:13:24 LIU Hao wrote:
> 在 2024-07-29 02:58, Pali Rohár 写道:
> > stdio/_scprintf.c:32:20: warning: ‘init_scprintf’ used but never defined
> > static int __cdecl init_scprintf(const char * __restrict__ format, ...);
>
> `static` can be removed as it has no effect. The li