* src/SDCC.lex(doPragma) : save and restore warning options as well
[fw/sdcc] / support / Util / SDCCerr.c
index cc3e98a4279a5b461b149e43bbce40f860f47192..19594964615349fed2eb895faefb3d53725f83d0 100644 (file)
 #define DEFAULT_ERROR_OUT      stderr
 #endif
 
-static struct {
-    ERROR_LOG_LEVEL logLevel;
-    FILE *out;
-    int style;                        /* 1=MSVC */
-    char disabled[MAX_ERROR_WARNING]; /* 1=warning disabled*/
-} _SDCCERRG;
+struct SDCCERRG _SDCCERRG; 
 
 extern char *filename ;
 extern int lineno ;
@@ -414,6 +409,13 @@ struct
    "previously defined here" },
 { W_SIZEOF_VOID, ERROR_LEVEL_WARNING,
    "size of void is zero" },
+{ W_POSSBUG2, ERROR_LEVEL_WARNING,
+   "possible code generation error at %s line %d,\n"
+   " please report problem and send source code at SDCC-USER list on SF.Net"},
+{ W_COMPLEMENT, ERROR_LEVEL_WARNING,
+   "using ~ on bit/bool/unsigned char variables can give unexpected results due to promotion to int" },
+{ E_SHADOWREGS_NO_ISR, ERROR_LEVEL_ERROR,
+   "ISR function attribute 'shadowregs' following non-ISR function `%s'" },
 };
 
 /*