[Mingw-w64-public] intrin-impl.h compile warning: this use of "defined" may not be portable

2024-08-04 Thread Pali Rohár
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

Re: [Mingw-w64-public] [PATCH 0/4] Fix compile warnings

2024-08-04 Thread Pali Rohár
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

[Mingw-w64-public] wspiapi.h:50:20: warning: cast between incompatible function types from ‘void (__attribute__((stdcall)) *)(struct addrinfo *)’ to ‘int (__attribute__((stdcall)) *)()’ [-Wcast-functi

2024-08-04 Thread Pali Rohár
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

[Mingw-w64-public] profile/profil.c:140:36: warning: cast between incompatible function types

2024-08-04 Thread Pali Rohár
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__((

[Mingw-w64-public] ssp/gets_chk.c:20:12: warning: call to ‘gets’ declared with attribute warning: Using gets() is always unsafe - use fgets() instead

2024-08-04 Thread Pali Rohár
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)

[Mingw-w64-public] misc/imaxdiv.c:34:1: warning: ‘lldiv’ alias between functions of incompatible types

2024-08-04 Thread Pali Rohár
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,

[Mingw-w64-public] stdio/_scprintf.c:32:20: warning: ‘init_scprintf’ used but never defined

2024-08-04 Thread Pali Rohár
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