Thread: Help with cc command

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    14

    Help with cc command

    Since I don't have 50 years of free time to read the entire man page, was just wondering how you exclude warnings in the output so you only see the errors? Useful for when you have like 300 warnings and 1 error. For some reason grep doesn't help...

  2. #2
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    So do we.

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    14
    The warnings are all acceptable, I have read them and taken them into account. I'm tired of reading them, would be great not to have to write some script or long command to get around this... The reason for all the warnings is this is a program with thousands of lines.

  4. #4

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > The warnings are all acceptable,
    And you know this how?

    What happens when warning 301 comes along which is NOT OK for you to ignore? You're already aiming to remove them all from sight.

    > The reason for all the warnings is this is a program with thousands of lines.
    Bully for you. My current project is >100K lines, and the number of warnings is typically zero.
    If the baseline is zero, it is VERY easy to spot when something new appears, because it will be the ONLY thing in view.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Oct 2010
    Posts
    14
    Quote Originally Posted by Salem View Post
    > The warnings are all acceptable,
    And you know this how?

    What happens when warning 301 comes along which is NOT OK for you to ignore? You're already aiming to remove them all from sight.

    > The reason for all the warnings is this is a program with thousands of lines.
    Bully for you. My current project is >100K lines, and the number of warnings is typically zero.
    If the baseline is zero, it is VERY easy to spot when something new appears, because it will be the ONLY thing in view.
    It's a class project we're not writing a new distribution of the Linux operating system or anything. In any case, I demoed my project this morning and it fulfilled all the requirements, so I don't think the warnings were impacting anything.

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by stevenswj View Post
    The warnings are all acceptable, I have read them and taken them into account. I'm tired of reading them, would be great not to have to write some script or long command to get around this... The reason for all the warnings is this is a program with thousands of lines.
    I suppose that depends how bad of a programmer you want to be...

  8. #8
    Registered User
    Join Date
    Oct 2010
    Posts
    14

    Unhappy

    Quote Originally Posted by CommonTater View Post
    I suppose that depends how bad of a programmer you want to be...
    Nobody's perfect I am improving tho

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. c program that accepts and executes commands?
    By Cimposter in forum C Programming
    Replies: 3
    Last Post: 09-30-2009, 02:58 PM
  3. List of Command
    By Peter_APIIT in forum C++ Programming
    Replies: 0
    Last Post: 08-08-2009, 09:47 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM