]> git.gag.com Git - fw/sdcc/blobdiff - src/SDCCerr.h
* src/SDCCerr.c (vwerror, setWError),
[fw/sdcc] / src / SDCCerr.h
index e523cc7a4c81db729e0bb9dd2d1b4b4db476a125..3bccf1df1a7835186e5fcbc40b7b3ac75bb79331 100644 (file)
@@ -238,6 +238,7 @@ struct SDCCERRG {
     ERROR_LOG_LEVEL logLevel;
     FILE *out;
     int style;                        /* 1=MSVC */
+    int werror;                       /* treat the warnings as errors */
     char disabled[MAX_ERROR_WARNING]; /* 1=warning disabled*/
 };
 
@@ -310,4 +311,11 @@ disabled - Disable output of specified warning
 
 void setWarningDisabled (int errNum) ;
 
+/*
+-------------------------------------------------------------------------------
+Set the flag to treat warnings as errors
+-------------------------------------------------------------------------------
+*/
+void setWError (int flag);
+
 #endif