# Warning level 4

**URL:** <https://forums.unrealengine.com/t/warning-level-4/333742>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 29, 2015, 11:30am UTC](https://forums.unrealengine.com/t/warning-level-4/333742 "2015-09-29T11:30:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaclav.Jarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaclav.Jarko](https://forums.unrealengine.com/u/Vaclav.Jarko)\
**Post date:** [September 29, 2015, 11:30am UTC](https://forums.unrealengine.com/t/warning-level-4/333742/1 "2015-09-29T11:30:21Z")

</div>

Hello,

Do you know how can I set the warning level to 4 ?  
You know I need to get error in compile time when I have some variables which are not used anywhere etc.

The problem is when I open properties of my project there is no possibility to set the warning level.

Many Thanks…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 29, 2015, 4:17pm UTC](https://forums.unrealengine.com/t/warning-level-4/333742/2 "2015-09-29T16:17:11Z")

</div>

Hey Vaclav-

Could you explain what you mean by setting the warning level? Are you referring to something inside the editor or in visual studio?

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 5, 2015, 6:47pm UTC](https://forums.unrealengine.com/t/warning-level-4/333742/3 "2015-10-05T18:47:16Z")

</div>

Hi Vaclav,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

---

<div class="post-metadata">

**Author:** ![Vaclav.Jarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaclav.Jarko](https://forums.unrealengine.com/u/Vaclav.Jarko)\
**Post date:** [October 5, 2015, 6:51pm UTC](https://forums.unrealengine.com/t/warning-level-4/333742/4 "2015-10-05T18:51:16Z")

</div>

Visual Studio.

---

<div class="post-metadata">

**Author:** ![Vaclav.Jarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaclav.Jarko](https://forums.unrealengine.com/u/Vaclav.Jarko)\
**Post date:** [October 5, 2015, 6:53pm UTC](https://forums.unrealengine.com/t/warning-level-4/333742/5 "2015-10-05T18:53:34Z")

</div>

There is nothing else to say basically 🙂 Just set up Warning level 4. But UE project has different settings which dos not allow to setup warning level 4 in common way. So I need to know how I can sort it out

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 5, 2015, 8:30pm UTC](https://forums.unrealengine.com/t/warning-level-4/333742/6 "2015-10-05T20:30:00Z")

</div>

Hey Vaclav-

Since we use a custom build system (UBT) a lot of the default VS compiler behavior has been overridden to work with the code. The WindowsPlatformCompilerSetup.h is where various compiler warnings/errors have custom settings to allow VS to work smoothly with the engine. You can edit the settings in this file however you may also need to remove unused variables within the codebase to get it running. If you are able to do so then you may want to submit a pull request to make it easier to use these settings in the future.

Cheers

---

<div class="post-metadata">

**Author:** ![Vaclav.Jarko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaclav.Jarko](https://forums.unrealengine.com/u/Vaclav.Jarko)\
**Post date:** [October 6, 2015, 9:59am UTC](https://forums.unrealengine.com/t/warning-level-4/333742/7 "2015-10-06T09:59:30Z")

</div>

Thanks for answer. Yes there is a lot of unused variables in UE 🙂
