Re: Missing warning about uninitialized variable.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sven Eschenberg wrote:
Bailing out with an error could be perfectly unreasonable.

Ideally you should use -Werror and/or perform parameter checking. a 2 mod 3 number of parameters may be "invalid" but if you don't actually act on it your program cannot be verified.

Granted I never use -Werror as I don't care about a lot of the minor violations (.e.g. passing a long to %d in a homebrew behind the scenes test program).

Tom

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux