Fix format-string bugs by adding __attribute__((__format__)) in all applicable

places and fixing all warnings my gcc produced.
Among other things, this should fix several segfaults (including one I just
ran into).
This commit is contained in:
Frits van Bommel
2009-05-17 00:15:25 +02:00
parent 392a4a850e
commit 76ae0b0ab6
15 changed files with 56 additions and 31 deletions

View File

@@ -876,7 +876,7 @@ int main(int argc, char** argv)
delete stripMD;
if(linker.LinkInModule(llvmModules[i], &errormsg))
error(errormsg.c_str());
error("%s", errormsg.c_str());
delete llvmModules[i];
}