I do not know, but it is quite picky. I compile with that as routine. Still, once in a while I use valgrind too. For some reason, If I compile files individually and link them, the warning does not show up. I need to compile gcc <warning switches> file1.c file2.c etc. etc. -o programname to get the result.Michel wrote:Ok I will try that. Does it cover all cases?I use gcc with these switches, and I get warnings for uninitialized variables:
-Wwrite-strings -Wconversion -Wshadow -Wparentheses -Wlogical-op -Wunused -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -W -Wall -Wextra
Miguel
Valgrind (which is basically a virtual cpu) works by tagging memory with extra bits to distinguish between initialized data and uninitialized data.