Thread: Compiler "Warnings"

  1. #16
    The C-er
    Join Date
    Mar 2004
    Posts
    192
    I always aim for 0 warnings - that way I don't have to read thru a list of warnings to decide whether any of them are important...

  2. #17
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    I agree, the game engine given in Tricks of the 3D Game Programming Gurus has over a thousand warnings and it's starting to annoy me.

  3. #18
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If the number of warnings isn't zero (1000+ is just plain stupid), then how will you spot the sudden appearance of a new warning you're really supposed to pay attention to?
    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.

  4. #19
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Say just how serious are warnings that want you to convert ints to doubles? I have two compilers. One of them it will bring up that warning but on my other one it sees it as an error instead of a warning. I thought maybe that it could be serious becouse of that. I dunno. Any input?

  5. #20
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I don't think compilers are permitted to give you an error for an int->double implicit conversion.

    I aim for 0 warnings as well. If I can't eliminate a warning in code and I know it has zarroo influence on the actual functionality (such as the old MSVC long-identifier warning) then I explicitely tell the compiler not to emit it.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #21
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    What's "zarroo"?

  7. #22
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Zero

  8. #23
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Quote Originally Posted by CornedBee
    I aim for 0 warnings as well. If I can't eliminate a warning in code and I know it has zarroo influence on the actual functionality (such as the old MSVC long-identifier warning) then I explicitely tell the compiler not to emit it.
    I don't know how to do that.

  9. #24
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Someone already posted how to do it for MSVC.
    #pragma warning(disable: ####)
    where #### is the warning number.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #25
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Yea, I just found it. (4244)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM