# Warnings Next Generation Plugin - gcc parser differences?

**URL:** <https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323>\
**Category:** Using Jenkins\
**Created:** [May 11, 2023, 1:31pm UTC](https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323 "2023-05-11T13:31:58Z")\
**Posts on this page:** 5\
**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:** [May 11, 2023, 1:31pm UTC](https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323/1 "2023-05-11T13:31:58Z")

</div>

The analysis-model that supports the Warnings Next Generation Plugin appears to offer several gcc parsers: ‘gcc’, ‘gcc3’. We use ‘gcc4’ which is not listed [here](https://github.com/jenkinsci/analysis-model/blob/5e4a33088ce647d7e521c1109d5853fd09b9951f/SUPPORTED-FORMATS.md).

What are the differences in the gcc formats? Which should be used with gcc v.11?

---

<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:** [May 11, 2023, 3:06pm UTC](https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323/2 "2023-05-11T15:06:27Z")

</div>

It is `gcc`. It covers the format of all post 3.x releases.

I think gcc now also supports SARIF, which is another option.

---

<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:** [May 11, 2023, 4:29pm UTC](https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323/3 "2023-05-11T16:29:12Z")

</div>

@uhafner Thank you for your reply. I am now using this command in my declarative pipeline:

```auto
recordIssues minimumSeverity: 'HIGH', tools: [gcc(id: 'centos7-scl-11-warnings', name: 'Centos 7 scl 11', pattern: 'centos_7_scl_11_build.log')]

```

There are 3 gcc warnings in the pattern file, but the graph has dropped from 3 to zero. I want to show the total number of warnings, not the number of new warnings, i.e. the graph should be 3 continually. Do I need an extra setting?

---

<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:** [May 11, 2023, 4:33pm UTC](https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323/4 "2023-05-11T16:33:27Z")

</div>

Are there 3 warnings shown in the table as well? The chart shows the warnings total. Or do these warnings use a severity of NORMAL?

It would help me if you can show a screenshot or the log messages of the warnings plugin (click on the (i) icon).

---

<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:** [May 11, 2023, 4:45pm UTC](https://community.jenkins.io/t/warnings-next-generation-plugin-gcc-parser-differences/7323/5 "2023-05-11T16:45:04Z")

</div>

@uhafner I’m sorry, I’ve just realised that my pattern file path was incorrect. I expect it will be ok now.

Thank you for answering my original question. I will mark it as the solution.
