[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi.
From: |
David Levine |
Subject: |
Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi. |
Date: |
Fri, 21 Oct 2016 10:57:22 -0400 |
Tom wrote:
> David Levine <address@hidden> writes:
> > Ralph wrote:
> >> I've since overridden configure's CFLAGS to add `-pedantic
> >> -ansi', but I wonder if m4/cppflags.m4 should attempt these
> >> and add them if they work?
>
> > We used to do this, but I removed them in commit 987b10b3. My
> > thinking was that CFLAGS is up to the user. I still think that's
> > the right thing to do. We do add -Wall -Wextra with gcc but those
> > don't cause compilation failure (and I've thought about removing
> > them).
>
> Note that '-ansi -pedantic' produces warnings about all constructs that
> aren't in C89, which is a much harsher restriction than has any real-world
> relevance today.
We're just trying to cater to a least common denominator. Note
that -ansi -pedantic is no longer our configure, it's just in our
personal builds.
David
- [Nmh-workers] Having configure Check for cc's -pedantic -ansi., Ralph Corderoy, 2016/10/21
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., David Levine, 2016/10/21
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., Tom Lane, 2016/10/21
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi.,
David Levine <=
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., David Levine, 2016/10/23
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., David Levine, 2016/10/24
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., Ralph Corderoy, 2016/10/24
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., David Levine, 2016/10/24
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., Ralph Corderoy, 2016/10/29
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., David Levine, 2016/10/29
- Re: [Nmh-workers] Having configure Check for cc's -pedantic -ansi., Ralph Corderoy, 2016/10/29