Thanks, now it works for both clang and gcc, with the added flags to
Makefile:

TCCFLAGS =    -DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include *-std=c89 -Wall*
-g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H

Is there any special reason for *not* using the -Wextra and -Werror flags,
like this?

TCCFLAGS =    -DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include *-std=c89 -Wall**
-Wextra** -Werror*   -g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H

BR,
Johan



On Tue, Aug 2, 2016 at 10:47 AM, Richard Hipp <[email protected]> wrote:

> Please try again with the latest code from trunk.
>
> On 8/2/16, Johan Kuuse <[email protected]> wrote:
> > Hi,
> >
> > In trunk (f475b943eb), I get a compiler warning when I use  clang with
> the
> > default Makefile:
> >
> >
> > cc -I. -I./src -Ibld -DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include    -g
> > -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H -O2 -pipe   -o
> bld/fshell.o
> > -c bld/fshell_.c
> > ./src/fshell.c:109:7: warning: implicit declaration of function 'waitpid'
> > is invalid in C99 [-Wimplicit-function-declaration]
> >       waitpid(childPid, &status, 0);
> >       ^
> >
> > I don't get that warning by default using gcc. Anyway, I can reproduce it
> > with the added flag -Wall, which also gives the following warning:
> >
> > gcc -I. -I./src -Ibld -DFOSSIL_DYNAMIC_BUILD=1 -I/usr/local/include -Wall
> > -g -O2 -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H -O2 -pipe   -o
> > bld/user.o -c bld/user_.c
> > ./src/user.c: In function 'prompt_for_passphrase':
> > ./src/user.c:191:15: warning: unused variable 'zSecure'
> [-Wunused-variable]
> >    const char *zSecure;
> >                ^
> >
> > BR,
> > Johan
> >
>
>
> --
> D. Richard Hipp
> [email protected]
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to