Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: zle -f from inside widget to set flags and make yank start/end zle params writable



I've been using clang, but if I switch to gcc I get another warning:

zle_thingy.c:671: warning: ‘zle_usable’ was used with no prototype before its definition

Sorry for not reporting this with the previous one, but anyway
this can be stopped by using func(void) instead of func():

static int
zle_usable(void)


On 2015/10/02, at 4:43, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> I didn't realize configure
> doesn't enable any warnings by default.

configure adds -Wall -Wmissing-prototypes to CFLAGS only if CFLAGS
is not specified by the user (lines 474 and below in configure.ac).

I guess you specify CFLAGS by yourself (in environment?); then
you need to explicitly include -Wxxx in CFLAGS.



Messages sorted by: Reverse Date, Date, Thread, Author