freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] A few compiler warnings from Mac OS's gcc.


From: Werner LEMBERG
Subject: Re: [ft-devel] A few compiler warnings from Mac OS's gcc.
Date: Sat, 01 Mar 2014 17:57:54 +0100 (CET)

Toshiya-san,


thanks for your analysis.

> a) on i386, x86_64 and arm where the optimized numerical functions
>    are enabled by default, FT_CONFIG_OPTION_FORCE_INT64 should be
>    enabled, for the developers' visibility.

OK.

> b-1) for LP64 systems, [use] the type long instead of long long for
>      64-bit variables.

OK.

> b-2) for ILP32 systems, configure should look up C99 types
>      (inttypes.h and int64_t), then, if available, use them for
>      64-bit variables.  Although int64_t is not supported by C90,
>      -pedantic does not complain about it :-(

Do we really need this?

> c) explicitly ignore a warning option and revert it explicitly,
>    because switching off a pragma in FT2 is not so complicated, it
>    is not so difficult (however, switching -Wlong-long does not work
>    for this issue at all! see d))

It's not clear to me what you want to say here...

> d-1) drop -pedantic option (worse idea)

What about simply disabling `-pedantic' for older gcc versions?  This
shouldn't do much harm.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]