[fpc-pascal] Assign int64 to int32 shows no warnings at compilation time

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Dec 18 19:32:38 CET 2018


On 18/12/2018 17:49, Jonas Maebe wrote:
> Compile with -CO -vh. Be prepared for lots of hints.

Fantastic, thanks. That is what I was looking for.


$ fpc -CO -vh overflow.pas
Hint: Start of reading config file /home/graemeg/.fpc.cfg
Hint: End of reading config file /home/graemeg/.fpc.cfg
Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling overflow.pas
overflow.pas(11,7) Hint: Type size mismatch, possible loss of data /
range check error
Linking overflow
/usr/bin/ld.bfd: warning: link.res contains output sections; did you
forget -T?
14 lines compiled, 0.0 sec
3 hint(s) issued



See, I knew FPC was better than Delphi! :-)


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list