I found the source of the warning in WinFBX includes. The AfxWin.inc and CSafeArray.inc code both contain a call to strstr with an "ANY PTR" and a ZSTRING argument instead of the expected const char *.
The FB headers use ztring:
Code: Select all
declare function strstr (byval as const zstring ptr, byval as const zstring ptr) as zstring ptr
The AfxFileScanW function also uses ANY PTR and a WSTRING argument instead of const wchar* and it doesn't complain.
Why does it complain if previous versions did not?
As I guess that the GCC guys won't give a rat's arse about casusing troubles to FreeBasic coders, I think that the solution will be to remove the inclusion of string.bi, include shlwapi.bi instead and change strstr to StrStrA and wccstr to StrStrW.