[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_SIZEOF(char) should warn at autoconf time
From: |
Bernd Jendrissek |
Subject: |
Re: AC_CHECK_SIZEOF(char) should warn at autoconf time |
Date: |
Wed, 30 Apr 2008 11:52:25 +0200 |
On Sat, Apr 26, 2008 at 8:00 AM, Zack Weinberg <address@hidden> wrote:
> On Sat, Apr 26, 2008 at 1:54 AM, Paul Eggert <address@hidden> wrote:
> > "Zack Weinberg" <address@hidden> writes:
> > > Would it be possible for autoconf to notice when AC_CHECK_SIZEOF has
> > > been applied to one of these types and issue a warning?
> >
> > Sure, autoconf could look for those textual patterns.
> > Also for "char unsigned", and for "char signed".
But not "char *" or "char [20]".
> Any or all of the above. I'm for user education, though, which is why
> I suggested the warning; I think that'll get more attention than a
> note in the manual (though if you do do the warning, a more detailed
> explanation in the manual would be good as well).
There's a lot of "foo * sizeof (char)" floating around too - in C
source. Not even with a typedef obscuring the char-ness.