> Am 06.05.2019 um 12:27 schrieb Sverre Moe <sverre....@gmail.com>:
> 
> How do I use this plugin to record and show C/C++ Warnings/Errors from GCC?
> 
> There is two tools available GNU C Compiler (gcc3) and GNU C Compiler (gcc4), 
> but are those for C?
> We are using a much newer version of GCC.
> 

I think I should rename the Tools

GNU C Compiler (gcc4) -> GNU C Compiler 
GNU C Compiler (gcc3) -> GNU C Compiler (3 and older)

And the ID to gcc. 

Would that make sense?

> Otherwise I could only find these for C++
> recordIssues(tools: [cppCheck()])
> recordIssues(tools: [cppLint()])
> 
> Neither found no warnings, but there where plenty of warnings when running 
> GCC.
> 
> [50/107] Building CXX object src/CMakeFiles/some.dir/thing/file.cpp.o 
> src/thing/file.cpp: In member function ‘std::__cxx11::string 
> file::method(const string&, const string&)’:
> src/thing/file.cpp:141:31: warning: unused variable ‘id’ [-Wunused-variable]
>  for (const auto & [ id, m ] : _id_to_var)
> 

I’m not sure if your log is different but the parser gcc4 should work. 

> 
> I tried with the gcc4, and it spewed out some errors with stacktrace in the 
> recording. Looks like it tried to run some git commands, and I do not have a 
> git repository at hand, just a stashed archive.
> However it seems at least it did find some Warnings. The warning above was 
> detected by gcc4.
> Is there any way I can stop it from accessing Git when it is trying to record?
> 

Yes, use 

recordIssues blameDisabled: true, …

BTW: there is also a Gitter channel available: 
https://gitter.im/jenkinsci/warnings-plugin 
<https://gitter.im/jenkinsci/warnings-plugin>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/db195bc3-2907-4dee-8a4b-a9a1bf2c6734%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/db195bc3-2907-4dee-8a4b-a9a1bf2c6734%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1BE0FEAF-0244-499D-B497-CC1E1E80D4F8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to