Forum > Options
Configuring hints and warnings in the IDE messages panel
Cascade:
When compiling in the IDE, I've configured my project to not display hints indicating that the configuration file is being/has been read (see attached screenshot). But the hints are still appearing.
Is there another place I need to configure such messages, apart from in the IDE Options dialog?
(I'd like to resolve the linker warnings and error message too - but maybe that's for a different post)
Thaddy:
In your fpc.cfg
Example: add a line
# parameter not used
-vw5024-
Or to disable Jonas case statement mix-up:
# silly case warnings
-vw8072-
These two keeps at least the most common out of sight.
These two should only show up with maximum verbosity.
The latter is a warning that should be a hint.
Cascade:
Thanks Thaddy - I'm guessing 5024 and 8072 are identifiers targeting a specific message. Is there a full reference list somewhere?
(edit - found your wiki page: https://wiki.freepascal.org/Turn_warnings_and_hints_on_or_off)
Cascade:
I've inserted a few entries into my fpc.cfg file as follows:
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---# Display Info, Warnings and Notes-viwn# Suppress config start/end reading hints:-v11030--v11031--v11034-# If you don't want so much verbosity use#-vw
That suppresses the End of Config hint, but not the Start of Config hint, which still appears. Looks like I'm on the right track though...
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---# Display Info, Warnings and Notes-viwn# Suppress config start/end reading hints:-vw11030,11031,11034
No that's not it. Hmm, tried -vh too. Maybe I'm just tired, will have another go tomorrow...
🥱😴💤
Thausand:
--- Quote from: Cascade on October 07, 2025, 08:00:24 pm ---No that's not it. Hmm, tried -vh too. Maybe I'm just tired, will have another go tomorrow...
--- End quote ---
program:
--- Code: ---$ echo "program test; {$mode objfpc}{$h+} begin writeln('hello world') end." > test.pas
--- End code ---
compile:
--- Code: ---$ fpc -B test.pas
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
1 lines compiled, 0.0 sec
--- End code ---
compile info:
--- Code: ---$ fpc -B -viwn test.pas
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
1 lines compiled, 0.0 sec
--- End code ---
compile info + hint:
--- Code: ---$ fpc -B -viwnh test.pas
Hint: Start of reading config file /home/apps/fpc/fpc.cfg
Hint: End of reading config file /home/apps/fpc/fpc.cfg
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Linking test
1 lines compiled, 0.0 sec
2 hint(s) issued
--- End code ---
compile have number for message:
--- Code: ---$ fpc -B -vq test.pas
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling test.pas
(9015) Linking test
(1008) 1 lines compiled, 0.0 sec
--- End code ---
compile have all info:
--- Code: ---$ fpc -B -viwnhq test.pas
Hint: (11030) Start of reading config file /home/apps/fpc/fpc.cfg
Hint: (11031) End of reading config file /home/apps/fpc/fpc.cfg
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling test.pas
(9015) Linking test
(1008) 1 lines compiled, 0.0 sec
(1022) 2 hint(s) issued
--- End code ---
compile have go away numbers (config read):
--- Code: ---$ fpc -B -viwnhq -vm11030,11031 test.pas
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling test.pas
(9015) Linking test
(1008) 1 lines compiled, 0.0 sec
--- End code ---
Lazarus have own configuration https://wiki.freepascal.org/Turn_warnings_and_hints_on_or_off
Navigation
[0] Message Index
[#] Next page