I switched to compiling a C app on a Maverick Meerkat Kubuntu box instead of my Mandriva 2010.0 laptop, which resulted in a slightly newer version of gcc — the compiler.
This resulted in discovering (via warning messages) several small ways in which certain segments of the application I’m working on are outright broken — would result in a SegFault sometimes & dubious results most other times.
Some of it was simply bad habits (forex, original programmer had hard-coded fixed values instead of terminating a list of arguments with a NULL), other of it were argument mismatches (forex, supplying an int argument for a %ld printf parameter, or occasionally more obscure things).
It does make me wonder what similar blunders I committed in the early days which were never discovered. (-:
This resulted in discovering (via warning messages) several small ways in which certain segments of the application I’m working on are outright broken — would result in a SegFault sometimes & dubious results most other times.
Some of it was simply bad habits (forex, original programmer had hard-coded fixed values instead of terminating a list of arguments with a NULL), other of it were argument mismatches (forex, supplying an int argument for a %ld printf parameter, or occasionally more obscure things).
It does make me wonder what similar blunders I committed in the early days which were never discovered. (-:
Comments