Mercurial > projects > ldc
comparison dmd/mtype.h @ 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 | 8026319762be |
children | 05c235309d6f |
comparison
equal
deleted
inserted
replaced
1371:967d28b7febe | 1372:229e02867307 |
---|---|
265 virtual Expression *toExpression(); | 265 virtual Expression *toExpression(); |
266 virtual int hasPointers(); | 266 virtual int hasPointers(); |
267 Type *next; | 267 Type *next; |
268 Type *nextOf() { return next; } | 268 Type *nextOf() { return next; } |
269 | 269 |
270 static void error(Loc loc, const char *format, ...); | 270 static void error(Loc loc, const char *format, ...) IS_PRINTF(2); |
271 static void warning(Loc loc, const char *format, ...); | 271 static void warning(Loc loc, const char *format, ...) IS_PRINTF(2); |
272 | 272 |
273 #if IN_DMD | 273 #if IN_DMD |
274 // For backend | 274 // For backend |
275 virtual unsigned totym(); | 275 virtual unsigned totym(); |
276 virtual type *toCtype(); | 276 virtual type *toCtype(); |