[MLton] -Wlong-long

Matthew Fluet matthew.fluet at gmail.com
Mon Mar 21 05:29:45 PST 2011


On Sun, Mar 20, 2011 at 4:15 PM, Wesley W. Terpstra <wesley at terpstra.ca> wrote:
> Why do we have -Wlong-long as a compile flag?

Looks like it was added as part of the x86_64 port.  I enabled as many
warnings as possible; in this case, I think the reasoning is that the
runtime shouldn't be relying on the implementation-defined "long long"
type, using explicitly sized types instead.

> It causes a spam of:
> warning: use of C99 long long integer constant
> ... (despite us using -std=gnu99)
> On the one hand it smacks of a gcc bug that we get this warning in C99 mode.

Is it warning about code in our runtime, or in header files that are
included?  I only see "long long" used in gdtoa, gen/c-types.c, and
platform/sysctl.c.
But, seems fine to disable the warning.



More information about the MLton mailing list