Re: -Wlong-long

Matthew Fluet <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <[email protected]>
On Sun, Mar 20, 2011 at 4:15 PM, Wesley W. Terpstra <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.