what about warnings?

Discussion in 'iOS Development' started by acca2o, Oct 15, 2009.

  1. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    I'm using gcc and everytime I compile it shows some warning.
    Have I to solve them or it's normal?
    What do you do with warnings?
    I sue the -Wall flag.

    thank.
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    How can we possibly tell you how to fix your warnings if you don't tell us what they are? Also, when you use -Wall, you tell the compiler that you want to be alerted to every single thing the compiler knows about.
  3. Collateral

    Collateral Active Member

    Joined:
    Sep 23, 2007
    Messages:
    1,974
    Likes Received:
    6
    Device:
    iPhone 3GS (Black)
    Yes you should solve them. If you didnt have to, they wouldnt be called warnings.
    Post it here so we can help you, most of the time its something stupid like brackets or semicolons.
  4. acca2o

    acca2o New Member

    Joined:
    Sep 26, 2009
    Messages:
    51
    Likes Received:
    0
    Device:
    2G iPod touch
    yes, you are right, tuo can't solve my warnings without knowing them

    Please Register or Log in to view images


    My question is...do you generaly solve every warning or there are some of them that you don't care
  5. Collateral

    Collateral Active Member

    Joined:
    Sep 23, 2007
    Messages:
    1,974
    Likes Received:
    6
    Device:
    iPhone 3GS (Black)
    You should try to solve them as a lot of warnings can be potential memory leaks, or just straight up inefficient code. If you cant figure out a way to fix it without re-writing your entire program, i would just worry about it in an update, but if you CAN fix it, i suggest that you do.
  6. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    You are being warned for a reason. And I absolutely make sure every single one is cleared up. Shipping an app with warnings is foolish and just asking for the application to fail when the user uses it.

Share This Page