comparison dmd/statement.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 e961851fb8be
children def7a1d494fd
comparison
equal deleted inserted replaced
1371:967d28b7febe 1372:229e02867307
102 virtual Statement *syntaxCopy(); 102 virtual Statement *syntaxCopy();
103 103
104 void print(); 104 void print();
105 char *toChars(); 105 char *toChars();
106 106
107 void error(const char *format, ...); 107 void error(const char *format, ...) IS_PRINTF(2);
108 void warning(const char *format, ...); 108 void warning(const char *format, ...) IS_PRINTF(2);
109 virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs); 109 virtual void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
110 virtual TryCatchStatement *isTryCatchStatement() { return NULL; } 110 virtual TryCatchStatement *isTryCatchStatement() { return NULL; }
111 virtual GotoStatement *isGotoStatement() { return NULL; } 111 virtual GotoStatement *isGotoStatement() { return NULL; }
112 virtual AsmStatement *isAsmStatement() { return NULL; } 112 virtual AsmStatement *isAsmStatement() { return NULL; }
113 virtual AsmBlockStatement *isAsmBlockStatement() { return NULL; } 113 virtual AsmBlockStatement *isAsmBlockStatement() { return NULL; }