Mercurial > projects > ldc
comparison ir/irdsymbol.cpp @ 1372:229e02867307
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).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 17 May 2009 00:15:25 +0200 |
parents | 1860414bf3b7 |
children |
comparison
equal
deleted
inserted
replaced
1371:967d28b7febe | 1372:229e02867307 |
---|---|
7 | 7 |
8 std::set<IrDsymbol*> IrDsymbol::list; | 8 std::set<IrDsymbol*> IrDsymbol::list; |
9 | 9 |
10 void IrDsymbol::resetAll() | 10 void IrDsymbol::resetAll() |
11 { | 11 { |
12 Logger::println("resetting %u Dsymbols", list.size()); | 12 Logger::println("resetting %zu Dsymbols", list.size()); |
13 std::set<IrDsymbol*>::iterator it; | 13 std::set<IrDsymbol*>::iterator it; |
14 for(it = list.begin(); it != list.end(); ++it) | 14 for(it = list.begin(); it != list.end(); ++it) |
15 (*it)->reset(); | 15 (*it)->reset(); |
16 } | 16 } |
17 | 17 |