On Mon, Jan 08, 2018 at 09:28:49PM -0500, Richard Hipp wrote:
> On 1/8/18, Martin Gagnon <[email protected]> wrote:
> >
> > Same warning for me. I'm using gcc 7.2.0 from msys2 under windows 10 [1].
> >
>
> There is yet another update on trunk. Please try again and report back.
Now I get:
----------
gcc -Wall -Wdeclaration-after-statement -Os -Lsrc/../compat/zlib
-Isrc/../compat/zlib -DBROKEN_MINGW_CMDLINE=1 -I. -Isrc -Dmain=sqlite3_shell
-DSQLITE_SHELL_IS_UTF8=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DUSE_SYSTEM_SQLITE=
-DSQLITE_SHELL_DBNAME_PROC=fossil_open -Daccess=file_access
-Dsystem=fossil_system -Dgetenv=fossil_getenv -Dfopen=fossil_fopen -c
src/shell.c -o wbld/shell.o
src/shell.c: In function 'fsdirNext':
src/shell.c:2505:30: warning: passing argument 2 of '_stat64i32' from
incompatible pointer type [-Wincompatible-pointer-types]
if( lstat(pCur->zPath, &pCur->sStat) ){
^
src/shell.c:2079:38: note: in definition of macro 'lstat'
# define lstat(path,buf) _stat(path,buf)
^~~
In file included from src/shell.c:108:0:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:101:28: note: expected
'struct _stat64i32 *' but argument is of type 'struct _stat64 *'
__CRT_INLINE int __cdecl _stat64i32(const char *_Name,struct _stat64i32
*_Stat)
^~~~~~~~~~
src/shell.c: In function 'fsdirFilter':
src/shell.c:2639:26: warning: passing argument 2 of '_stat64i32' from
incompatible pointer type [-Wincompatible-pointer-types]
if( lstat(pCur->zPath, &pCur->sStat) ){
^
src/shell.c:2079:38: note: in definition of macro 'lstat'
# define lstat(path,buf) _stat(path,buf)
^~~
In file included from src/shell.c:108:0:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:101:28: note: expected
'struct _stat64i32 *' but argument is of type 'struct _stat64 *'
__CRT_INLINE int __cdecl _stat64i32(const char *_Name,struct _stat64i32
*_Stat)
^~~~~~~~~~
----------
It may be related with the fact that I have to specify "X64=1", I may
have a strange msys2 setup.
--
Martin G.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users