Changes in src/Common/SemanticError.h [a16764a6:1feb535f]
- File:
-
- 1 edited
-
src/Common/SemanticError.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
ra16764a6 r1feb535f 37 37 38 38 constexpr const char * const WarningFormats[] = { 39 39 "self assignment of expression: %s", 40 40 }; 41 41 42 42 enum class Warning { 43 SelfAssignment, 43 44 NUMBER_OF_WARNINGS, //This MUST be the last warning 44 45 }; … … 49 50 ); 50 51 51 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[ id], __VA_ARGS__)52 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[(int)id], __VA_ARGS__) 52 53 53 54 void SemanticWarningImpl (CodeLocation loc, Warning warn, const char * const fmt, ...) __attribute__((format(printf, 3, 4))); … … 71 72 } 72 73 73 74 75 76 74 // Local Variables: // 77 75 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.