zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: PATCH: zle -f from inside widget to set flags and make yank start/end zle params writable
Date: Fri, 2 Oct 2015 20:43:10 +0200	[thread overview]
Message-ID: <CAHYJk3RcBZx5zH0ikCWj5UTukxsBbOcc30cz7E22mMba=5Ar3Q@mail.gmail.com> (raw)
In-Reply-To: <5E5C5064-FD62-44B8-B6B0-02FB5A70BC30@kba.biglobe.ne.jp>

On Fri, Oct 2, 2015 at 10:09 AM, Jun T. <takimoto-j@kba.biglobe.ne.jp> wrote:
> 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)

I moved the definition up so it's not used before being defined instead.

> On 2015/10/02, at 4:43, Mikael Magnusson <mikachu@gmail.com> 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.

I guess so, most projects add their warning flags regardless.

-- 
Mikael Magnusson


  reply	other threads:[~2015-10-02 18:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29  4:43 PATCH: Make yank " Mikael Magnusson
2015-09-29  4:43 ` PATCH: Add a much simpler alternative to using url-quote-magic + bracketed-paste-magic Mikael Magnusson
2015-09-29 18:09 ` PATCH: Make yank zle params writable Mikael Magnusson
2015-09-30  1:15 ` Mikael Magnusson
2015-09-30  2:06   ` PATCH: zle -f from inside widget to set flags and make yank start/end " Mikael Magnusson
2015-10-01 15:33     ` Jun T.
2015-10-01 19:43       ` Mikael Magnusson
2015-10-02  8:09         ` Jun T.
2015-10-02 18:43           ` Mikael Magnusson [this message]
2015-10-02 19:58             ` Jun T.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYJk3RcBZx5zH0ikCWj5UTukxsBbOcc30cz7E22mMba=5Ar3Q@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=takimoto-j@kba.biglobe.ne.jp \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).