I'd like to prevent Warnings (all of them) from being shown in the Messages window at compile-time. (...)
Quote from: Paulo França Lacerda (patulinu) on October 08, 2016, 03:19:23 pmI'd like to prevent Warnings (all of them) from being shown in the Messages window at compile-time. (...) The way to do it is to write good code. Warnings are potential bugs in most cases, that's why you can't deactivate all them.
Compile with -v0 ? (0 : Show nothing (except errors))But, as others stated, this is really a bad idea.Bart
I didn't know that -v0 Tnx Bart Is that documented? Than I overlooked it.
C:\Users\Bart>fpc -h | grep --after-context=12 "verbose" -v<x> Be verbose. <x> is a combination of the following letters: e : Show errors (default) 0 : Show nothing (except errors) w : Show warnings u : Show unit info n : Show notes t : Show tried/used files h : Show hints c : Show conditionals i : Show general info d : Show debug info l : Show linenumbers r : Rhide/GCC compatibility mode s : Show time stamps q : Show message numbers a : Show everything x : Show info about invoked tools b : Write file names messages p : Write tree.log with parse tree with full path v : Write fpcdebug.txt with z : Write output to stderr lots of debugging info m<x>,<y> : Do not show messages numbered <x> and <y>
...But the Lazarus IDE doesn't seem to follow the real compiler here.
The command line messages don't bother me.