* * *

Author Topic: [SOLVED] How to see all warnings for the project?  (Read 492 times)

Eugene Loza

  • Sr. Member
  • ****
  • Posts: 377
    • Decoherence Studio :)
[SOLVED] How to see all warnings for the project?
« on: March 16, 2017, 08:11:32 am »
As usually I'm missing something basic... Or, maybe it's a feature request...
The issue is: on compile I can see only those warnings/hints that appear in a recently-changed unit (i.e. the one recompiled). If unit has not been changed I don't see any warnings for it, even those user-defined, even if I've just seen them a few seconds ago at previous compilation. I also don't see an exclamation mark for lines with warnings.
The only way to see all the warnings is to clean and recompile the project completely.
However, maybe there's an option to "save" warnings from previous compilations and preserve them in messages even if nothing has been changed.
« Last Edit: March 16, 2017, 12:31:57 pm by Eugene Loza »
My Free and Open Source games in Lazarus/FreePascal/CastleGameEngine:
https://decoherence.itch.io/
(and some ancient games in Turbo Pascal too)

Handoko

  • Hero Member
  • *****
  • Posts: 1200
  • My goal: build my own game engine using Lazarus
Re: How to see all warnings for the project?
« Reply #1 on: March 16, 2017, 08:15:21 am »
If I'm not wrong, you need to use "Build" (not compile):

Lazarus main menu > Run > Build.

Usually I just simply compile my project after minor modifications. But I sometimes use build to check the warnings. It will take longer time, but very useful to make sure everything is good.
« Last Edit: March 16, 2017, 08:21:26 am by Handoko »

Thaddy

  • Hero Member
  • *****
  • Posts: 3675
Re: How to see all warnings for the project?
« Reply #2 on: March 16, 2017, 11:25:48 am »
Alternatively, add the -B option to the commandline or the compiler options.
Provided the FPC and Lazarus sources are installed it will compile everything related to your project
Why do the Danish always try to fuck up any programming language?

Eugene Loza

  • Sr. Member
  • ****
  • Posts: 377
    • Decoherence Studio :)
Re: How to see all warnings for the project?
« Reply #3 on: March 16, 2017, 12:31:41 pm »
Thanks a lot, Handoko and Thaddy! I'll try this asap :)
My Free and Open Source games in Lazarus/FreePascal/CastleGameEngine:
https://decoherence.itch.io/
(and some ancient games in Turbo Pascal too)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus