* src/SDCCast.c (decorateType): fixed bug 1368489
[fw/sdcc] / support / Util / SDCCerr.h
index 7a9fe583e66e3ccbcf25320e594138c64f445fbc..b48e0b624eb29f36c7e53755160cc345fe449516 100644 (file)
@@ -193,6 +193,14 @@ SDCCERR - SDCC Standard error handler
 #define W_DEPRECATED_PRAGMA           175 /* deprecated pragma */
 #define E_SIZEOF_INCOMPLETE_TYPE      176 /* sizeof applied to an incomplete type */
 #define E_PREVIOUS_DEF                177 /* previously defined here */
+#define W_SIZEOF_VOID                 178 /* size of void is zero */
+#define W_POSSBUG2                    179 /* possible bug, new format */
+#define W_COMPLEMENT                  180 /* ~bit can give unexpected results */
+#define E_SHADOWREGS_NO_ISR           181 /* shadowregs keyword following non-ISR function */
+#define W_SFR_ABSRANGE                182 /* sfr at address out of range */
+#define E_BANKED_WITH_CALLEESAVES     183 /* banked and callee-saves mixed */
+#define W_INVALID_INT_CONST           184 /* invalid integer literal string */
+#define W_CMP_SU_CHAR                 185 /* comparison of 'signed char' with 'unsigned char' requires promotion to int */
 
 #define MAX_ERROR_WARNING             256 /* size of disable warnings array */
 
@@ -217,6 +225,15 @@ enum _ERROR_LOG_LEVEL {
 
 typedef enum _ERROR_LOG_LEVEL ERROR_LOG_LEVEL;
 
+struct SDCCERRG {
+    ERROR_LOG_LEVEL logLevel;
+    FILE *out;
+    int style;                        /* 1=MSVC */
+    char disabled[MAX_ERROR_WARNING]; /* 1=warning disabled*/
+};
+
+extern struct SDCCERRG _SDCCERRG;
+
 /** Sets the maximum error level to log.
     See MAX_ERROR_LEVEL.  The default is ERROR_LEVEL_ALL.
 */