You are not logged in.

#1 2008-10-31 20:03:02

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

GCC output analyer?

Does anybody know a tool or script that takes the output of gcc and, categorizes and counts all the warning messages that were generated during compilation?

Offline

#2 2008-10-31 22:05:29

Husio
Member
From: Europe
Registered: 2005-12-04
Posts: 359
Website

Re: GCC output analyer?

vim

Offline

#3 2008-11-01 05:05:13

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: GCC output analyer?

IMO, it's best to fix the first few errors and recompile. Subsequent errors are likely to be caused by those anyway.

Offline

#4 2008-11-01 15:14:27

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: GCC output analyer?

pauldonnelly wrote:

IMO, it's best to fix the first few errors and recompile. Subsequent errors are likely to be caused by those anyway.

There are no errors. Just warnings.

Offline

#5 2008-11-03 22:00:19

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: GCC output analyer?

GogglesGuy wrote:
pauldonnelly wrote:

IMO, it's best to fix the first few errors and recompile. Subsequent errors are likely to be caused by those anyway.

There are no errors. Just warnings.

Then I guess I would fix those instead.

Offline

#6 2008-11-04 16:24:11

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: GCC output analyer?

pauldonnelly wrote:
GogglesGuy wrote:
pauldonnelly wrote:

IMO, it's best to fix the first few errors and recompile. Subsequent errors are likely to be caused by those anyway.

There are no errors. Just warnings.

Then I guess I would fix those instead.

Well.. that wasn't the question...

Offline

#7 2008-11-04 19:33:22

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: GCC output analyer?

I know. But considering the volume of garbage a compiler dumps out, I can't see the benifit to organizing it. Whenever I'm debugging my code or trying to make someone else's program run, I service errors/warnings in a first broken/first fixed manner, which I believe is best.

Offline

#8 2008-11-05 17:57:43

Baha
Member
Registered: 2008-09-07
Posts: 52

Re: GCC output analyer?

I don't understand at all what you want to do, but I think awk can help you, no?

Offline

#9 2008-11-05 19:54:59

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: GCC output analyer?

pauldonnelly wrote:

I know. But considering the volume of garbage a compiler dumps out, I can't see the benifit to organizing it. Whenever I'm debugging my code or trying to make someone else's program run, I service errors/warnings in a first broken/first fixed manner, which I believe is best.

Consider a number of automated build machines. I'd like a quick overview of all warnings that were generated, without having to scroll through the captured output.

Offline

Board footer

Powered by FluxBB