recordIssues plugin: how to exclude warnings for system headers?

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

/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?

You can use a filter by file name extension:

@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.

I see. Maybe the official documentation helps:

1 Like

@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

On my machine I can see and use the textbox.

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