Changes in src/Common/SemanticError.h [1feb535f:9dc31c10]
- File:
-
- 1 edited
-
src/Common/SemanticError.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r1feb535f r9dc31c10 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Aug 29 22:03:36 201713 // Update Count : 1 712 // Last Modified On : Wed Apr 18 16:28:16 2018 13 // Update Count : 18 14 14 // 15 15 … … 38 38 constexpr const char * const WarningFormats[] = { 39 39 "self assignment of expression: %s", 40 "rvalue to reference conversion of rvalue: %s", 41 "questionable use of type qualifier %s with %s", 40 42 }; 41 43 42 44 enum class Warning { 43 45 SelfAssignment, 46 RvalueToReferenceConversion, 47 BadQualifiersZeroOne, 44 48 NUMBER_OF_WARNINGS, //This MUST be the last warning 45 49 }; … … 50 54 ); 51 55 52 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[(int)id], __VA_ARGS__) 56 // ## used here to allow empty __VA_ARGS__ 57 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[(int)id], ## __VA_ARGS__) 53 58 54 59 void SemanticWarningImpl (CodeLocation loc, Warning warn, const char * const fmt, ...) __attribute__((format(printf, 3, 4)));
Note:
See TracChangeset
for help on using the changeset viewer.