From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14241 invoked by alias); 2 Oct 2015 18:43:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36747 Received: (qmail 4100 invoked from network); 2 Oct 2015 18:43:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WhzYkMMD7NSGQy4dRB5aHTBXXUqdT4H0HUNdgPCfO5c=; b=L8ptJ2h/1r3Jp6JjEObJquhO4CpI/8vz/bsCJuGFlQeqncBOB+CmxCUO3pHRDkiBVZ BZ0Y/sbog89aoL5wXPakuVxS2dpnggaKtYu4sGbFoC9A7+Qmkvg4m1FRoGRiG8d/4MJw 0CVMsNxeOyxxLRMfHMIpaX1prD5Szzo/W9uLe0hXF1jPnTyxsKs17HzMlKDTZc9vTv8t l2jlHmuRm5lF/NFQ8QavVhhKyF1Tw1I+Vsfb64yWgqSkWaSh3E9WqN3nt+ZDQmEQq0Zm QTqWpv7rdw7Jd++AuLak8DZcSBuKQfTrEucxmQou2eE8LQC860GVbxzu6Bq8APVR/iFI c3jA== MIME-Version: 1.0 X-Received: by 10.140.217.70 with SMTP id n67mr23079570qhb.96.1443811390323; Fri, 02 Oct 2015 11:43:10 -0700 (PDT) In-Reply-To: <5E5C5064-FD62-44B8-B6B0-02FB5A70BC30@kba.biglobe.ne.jp> References: <1443578812-18807-1-git-send-email-mikachu@gmail.com> <4556E6A0-3A89-4C0F-A359-3CA25E764761@kba.biglobe.ne.jp> <5E5C5064-FD62-44B8-B6B0-02FB5A70BC30@kba.biglobe.ne.jp> Date: Fri, 2 Oct 2015 20:43:10 +0200 Message-ID: Subject: Re: PATCH: zle -f from inside widget to set flags and make yank start/end zle params writable From: Mikael Magnusson To: "Jun T." Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Oct 2, 2015 at 10:09 AM, Jun T. wrot= e: > I've been using clang, but if I switch to gcc I get another warning: > > zle_thingy.c:671: warning: =E2=80=98zle_usable=E2=80=99 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 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. --=20 Mikael Magnusson