# recordIssues plugin: how to exclude warnings for system headers?

**URL:** <https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336>\
**Category:** Using Jenkins\
**Created:** [September 1, 2023, 8:38am UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336 "2023-09-01T08:38:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 1, 2023, 8:38am UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/1 "2023-09-01T08:38:45Z")

</div>

When using the recordIssues plugin to report warnings from the gcc compiler, I would like to ignore warnings for gcc library headers, for example:

```auto
/opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/include/avx2intrin.h:1283:10: warning: '__Y' may be used uninitialized [-Wmaybe-uninitialized]

```

Is that possible?

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [September 3, 2023, 9:53am UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/2 "2023-09-03T09:53:30Z")

</div>

You can use a filter by file name extension:

> <https://github.com/jenkinsci/warnings-ng-plugin/blob/db07bfe4addb69a649ffc1cfcc7ec72ad3314041/doc/Documentation.md#filtering-issues>

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 4, 2023, 5:29pm UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/3 "2023-09-04T17:29:10Z")

</div>

@uhafner Thanks for your reply. Unfortunately I cannot easily work out the syntax because our Snippet Generator is broken. I have reported that problem today in a separate message to this forum.

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [September 4, 2023, 9:12pm UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/4 "2023-09-04T21:12:21Z")

</div>

I see. Maybe the official documentation helps:

> **[Warnings Next Generation Plugin](https://www.jenkins.io/doc/pipeline/steps/warnings-ng/#recordissues-record-compiler-warnings-and-static-analysis-results)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 6, 2023, 12:51pm UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/5 "2023-09-06T12:51:19Z")

</div>

@uhafner I now have the Snippet Generator working for recordIssues. If I select tool ‘GNU C Compiler (gcc)’ and select:

Issue filters \> Add filter \> Exclude file names

No text box appears to enter a pattern. Is that correct behaviour?

Jenkins Version 2.414.1  
Warnings Next Generation Plugin Version 10.4.0

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [September 6, 2023, 8:35pm UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/6 "2023-09-06T20:35:38Z")

</div>

On my machine I can see and use the textbox.

 ![Bildschirmfoto 2023-09-06 um 22.35.08](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/e/e557a36dd402c751bea413305ecacc7bc2bccae8.png)

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [September 7, 2023, 9:11am UTC](https://community.jenkins.io/t/recordissues-plugin-how-to-exclude-warnings-for-system-headers/9336/7 "2023-09-07T09:11:56Z")

</div>

@uhafner Thank you, I can see the text box now.
