Re: [fpc-pascal] What is -CO ?

2023-06-15 Thread Mattias Gaertner via fpc-pascal
On Thu, 15 Jun 2023 22:00:03 +0200 Jonas Maebe via fpc-pascal wrote: > On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: > > What is -CO? > > > > In the docs I can only find this sentence: > > "Check for possible overflow of integer operations" > > It prints a warning whenever the c

Re: [fpc-pascal] What is -CO ?

2023-06-15 Thread Jonas Maebe via fpc-pascal
On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: What is -CO? In the docs I can only find this sentence: "Check for possible overflow of integer operations" It prints a warning whenever the compiler inserts an implicit type conversion to a type that cannot represent every value of

Re: [fpc-pascal] What is -CO ?

2023-06-09 Thread Martin via fpc-pascal
On 09/06/2023 12:03, Mattias Gaertner via fpc-pascal wrote: Hi, What is -CO? In the docs I can only find this sentence: "Check for possible overflow of integer operations" Done some testing. -CO produces the below warning. program Project1; var a,b: Integer; var c: integer; begin a := Rando

Re: [fpc-pascal] What is -CO ?

2023-06-09 Thread Michalis Kamburelis via fpc-pascal
I'm also curious :) I just tested, and the -Co (lowercase "o") enables overflow checking by default (like "{$Q+}" in code), https://github.com/michaliskambi/modern-pascal-introduction/wiki/What-are-range-and-overflow-checks-(and-errors)-in-Pascal . But -CO (uppercase "O") seems unrelated to it.

[fpc-pascal] What is -CO ?

2023-06-09 Thread Mattias Gaertner via fpc-pascal
Hi, What is -CO? In the docs I can only find this sentence: "Check for possible overflow of integer operations" Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal