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