# Delphi Compiler Warnings - Defaults button

**URL:** <https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668>\
**Category:** Discussion\
**Tags:** delphi\
**Created:** [June 27, 2025, 5:40pm UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668 "2025-06-27T17:40:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DCornelius](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/dcornelius/32/2444_2.png) [@DCornelius](https://www.finalbuilder.com/forums/u/DCornelius)\
**Post date:** [June 27, 2025, 5:40pm UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/1 "2025-06-27T17:40:39Z")

</div>

When editing the “Build Delphi” task and I switch to the Compiler tab, the bottom-right has a list of options for controlling Messages and a button to customize which Warnings you can disable (I’m assuming that’s for the “Treat warnings as errors” option).

**In that pop-up “Compiler Warnings” box, what does the “Defaults” button do?**

I hoped it would allow me to use a pre-selected list of enabled/disabled warnings that I could apply to new Delphi projects but I don’t see where to set that list nor does that button seem to do anything.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 27, 2025, 11:04pm UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/2 "2025-06-27T23:04:36Z")

</div>

Hi David

What that button **should** do is reset the warnings back the the default values (ie reset any overrides), however at some point in time the button event handler has become disconnected so right now it does indeed do nothing. I can also see that we are missing some of the newer warnings in that list - will fix and post a new build with that fix shortly.

---

<div class="post-metadata">

**Author:** ![DCornelius](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/dcornelius/32/2444_2.png) [@DCornelius](https://www.finalbuilder.com/forums/u/DCornelius)\
**Post date:** [June 27, 2025, 11:19pm UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/3 "2025-06-27T23:19:24Z")

</div>

Thanks. So the default values are basically all warnings set to True, right?

If so, I’d like to propose a feature request to allow me to customize that default list. For my situation, I have hundreds of Windows-only programs (Delphi projects) I’m upgrading from an old code-base where many poor programming techniques were practiced over the years and I’ve turned on “treat warnings as errors” to force clean-up of the code but then need to turn off Platform Symbol and Platform Unit warnings because of the prevalent use of Windows API calls. It’s tedious customizing that list for every project build task.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 27, 2025, 11:32pm UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/4 "2025-06-27T23:32:41Z")

</div>

> [@DCornelius](#):
>
> Thanks. So the default values are basically all warnings set to True, right?

Not quite, some warnings in delphi default to false. So the defaults are what ever the values are in a new project.

> [@DCornelius](#):
>
> If so, I’d like to propose a feature request to allow me to customize that default list.

I will look into it. My main concern would be the potential for “works on my machine issues”.

---

<div class="post-metadata">

**Author:** ![DCornelius](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/dcornelius/32/2444_2.png) [@DCornelius](https://www.finalbuilder.com/forums/u/DCornelius)\
**Post date:** [June 27, 2025, 11:44pm UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/5 "2025-06-27T23:44:05Z")

</div>

> [@Vincent](#):
>
> Not quite, some warnings in delphi default to false. So the defaults are what ever the values are in a new project.

Oh, so if I have a project in Delphi I’m migrating and setting up the options, then am ready to put it in our build process, it will pull in the warnings from the project file initially; after that, I can disconnect it from the project file and it’ll be set. That’ll work!

Also, I can copy other FB Build Tasks that already have all the options configured and just change the project to which it points (they’re all very similar). That works, too. 😎

Thanks!

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 28, 2025, 12:02am UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/6 "2025-06-28T00:02:26Z")

</div>

Yes that should work. It’s a very long time since I looked at this code so need to familiarise myself with how it all works - once I do I’ll update the list to include the missing newer warnings (from a quick test there are 5 missing).

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 28, 2025, 3:58am UTC](https://www.finalbuilder.com/forums/t/delphi-compiler-warnings-defaults-button/7668/7 "2025-06-28T03:58:36Z")

</div>

This build fixes the defaults button not working and adds support for the newer warnings

[https://downloads.finalbuilder.com/downloads/finalbuilder/850/FB850\_3484.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/850/FB850_3484.exe)
