Recent

Author Topic: No warnings from the compiler.  (Read 452 times)

OC DelGuy

  • Full Member
  • ***
  • Posts: 121
No warnings from the compiler.
« on: February 05, 2023, 07:49:11 am »
This is just a commentary:

I just noticed that when I was writing the console program the convert the file of strings into a data structure, every time I compiled or ran the program, The messages window would have all these warnings of variables and/or procedures declared, but not used in the program.
Like if I declared a variable:
a : Integer;
but in the entire program never used the variable "a", then I'd get a variable not used warning.

But when I compile the application, there are no warnings.  Even though there are two procedures declared and written out, no warnings.   Hmmm...
Free Pascal Lazarus Version #: 2.2.4
Date: 24 SEP 2022
FPC Version: 3.2.2
Revision: Lazarus_2_2_4
x86_64-win64-win32/win64

PascalDragon

  • Hero Member
  • *****
  • Posts: 5469
  • Compiler Developer
Re: No warnings from the compiler.
« Reply #1 on: February 06, 2023, 10:34:16 pm »
But when I compile the application, there are no warnings.  Even though there are two procedures declared and written out, no warnings.   Hmmm...

Without an explicit example it's hard to tell what might go on.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: No warnings from the compiler.
« Reply #2 on: February 06, 2023, 11:13:33 pm »
Variable not used is not Warning, it's just a Note.
Look at Project Options ... -> Verbosity. There is checkbox Show notes (-vn).
I just don't know whether this option is on or off by default, i.e. when you install Lazarus.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

 

TinyPortal © 2005-2018