Changeset caa649b for src/Common/SemanticError.h
- Timestamp:
- Mar 6, 2018, 12:11:11 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 520145b, e5d4e5c, e6c5e79
- Parents:
- 094476d (diff), 1feb535f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r094476d rcaa649b 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.