# Where can I add the compiler flags when I build my project?

**URL:** <https://forums.unrealengine.com/t/where-can-i-add-the-compiler-flags-when-i-build-my-project/502837>\
**Category:** C++\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [February 28, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/where-can-i-add-the-compiler-flags-when-i-build-my-project/502837 "2022-02-28T15:10:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chunfeng\_tsin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chunfeng\_tsin](https://forums.unrealengine.com/u/chunfeng_tsin)\
**Post date:** [February 28, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/where-can-i-add-the-compiler-flags-when-i-build-my-project/502837/1 "2022-02-28T15:10:56Z")

</div>

the class member order in the initialize list of class , is different from with the declaration order inner the class, so , if I keep the order of initialize list, what and where the compiler flags I should add to ?

the error tips:  
`[0m[0;1;31merror: [0m[1mfield 'count_' will be initialized after field 'nextSndSn_' [-Werror,-Wreorder-ctor]`

MY IDE is Rider 2022.1EAP3 under Linux

---

<div class="post-metadata">

**Author:** ![JoePixelManiacs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoePixelManiacs](https://forums.unrealengine.com/u/JoePixelManiacs)\
**Post date:** [August 16, 2023, 9:21am UTC](https://forums.unrealengine.com/t/where-can-i-add-the-compiler-flags-when-i-build-my-project/502837/2 "2023-08-16T09:21:43Z")

</div>

in your \*.Target.cs add the following line:

```auto
AdditionalCompilerArguments += "-w";

```

this will ignore all warnings.

---

<div class="post-metadata">

**Author:** ![chunfeng\_tsin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chunfeng\_tsin](https://forums.unrealengine.com/u/chunfeng_tsin)\
**Post date:** [December 1, 2023, 2:50am UTC](https://forums.unrealengine.com/t/where-can-i-add-the-compiler-flags-when-i-build-my-project/502837/3 "2023-12-01T02:50:29Z")

</div>

That is pretty thanks for your reply!!!

---

<div class="post-metadata">

**Author:** ![Vengeance66](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vengeance66/32/768368_2.png) [@Vengeance66](https://forums.unrealengine.com/u/Vengeance66)\
**Post date:** [May 10, 2024, 8:20am UTC](https://forums.unrealengine.com/t/where-can-i-add-the-compiler-flags-when-i-build-my-project/502837/4 "2024-05-10T08:20:10Z")

</div>

I tried it but UE is not permitting this. I opened a thread about build with the new update Xcode 15 requirements.

If anyone has any other ideas, would be grateful: [UE4 Xcode 15 remote build fails due to many warnings](https://forums.unrealengine.com/t/ue4-xcode-15-remote-build-fails-due-to-many-warnings/1849173)

Thanks!
