Compiling MLTon on Windows64/Mingw64

Bikal Gurung <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <CAB-rfD0Wh1hJKAMUZkALVG7nohcXRcDUyBO-RuT5DYA8aqW5KA@mail.gmail.com>
Hi All,

I am compiling MLTon source from the current github HEAD. My build
arch/platform is Win64/Mingw64/Msys. While I am able to build the 'runtime'
successfully - I think - I am getting a lot of gcc compiler warnings. Is it
okay/safe/correct to ignore these warnings and move on? Or is it better to
address these warnings and get a clean compile/build without any warnings?

The gcc compiler I am using :
gcc version 4.9.0 (x86_64-win32-seh-rev2, Built by MinGW-W64 project)

Some of the the warnings that I am getting are as follows - about 400 such
warnings.:

platform/mingw.c: In function 'MLTimer':
platform/mingw.c:260:17: warning: implicit declaration of function
'timeBeginPeriod' [-Wimplicit-function-declaration]
                 timeBeginPeriod(1);
                 ^
platform/mingw.c:260:17: warning: nested extern declaration of
'timeBeginPeriod' [-Wnested-externs]
platform/mingw.c: In function 'setSysname':
platform/mingw.c:785:9: warning: dereferencing type-punned pointer might
break strict-aliasing rules [-Wstrict-aliasing]
         if (! GetVersionEx ((OSVERSIONINFO *)(void*) &osv)) {
         ^
platform/mingw.c:788:11: warning: dereferencing type-punned pointer might
break strict-aliasing rules [-Wstrict-aliasing]
           GetVersionEx((OSVERSIONINFO *)(void*) &osv);
           ^
basis/MLton/Process/spawne.c: In function 'MLton_Process_spawne':
basis/MLton/Process/spawne.c:26:9: warning: passing argument 3 of 'spawnve'
from incompatible pointer type
   res = spawnve (SPAWN_MODE, path,
         ^
In file included from C:/MinGW/64/x86_64-w64-mingw32/include/unistd.h:11:0,
                 from ./platform/mingw.h:13,
                 from ./cenv.h:88,
                 from ./platform.h:13,
                 from basis/MLton/Process/spawne.c:1:

Bikal.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

_______________________________________________
MLton-user mailing list
[email protected]; [email protected]
https://lists.sourceforge.net/lists/listinfo/mlton-user
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.