X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCerr.h;h=7b707445e507863b294927acab5856f79af91380;hb=fd94924a3d743c1c82f4b370d9401d7239172789;hp=e523cc7a4c81db729e0bb9dd2d1b4b4db476a125;hpb=a8be9f148f5b4539ef76aff968f66ce658e5d063;p=fw%2Fsdcc diff --git a/src/SDCCerr.h b/src/SDCCerr.h index e523cc7a..7b707445 100644 --- a/src/SDCCerr.h +++ b/src/SDCCerr.h @@ -107,7 +107,7 @@ SDCCERR - SDCC Standard error handler #define E_SFR_ADDR_RANGE 89 /* sfr address out of range */ #define E_BITVAR_STORAGE 90 /* storage given for 'bit' variable */ #define E_EXTERN_MISMATCH 91 /* extern declaration mismatches */ -#define W_NONRENT_ARGS 92 /* fptr non reentrant has args */ +#define E_NONRENT_ARGS 92 /* fptr non reentrant has args */ #define W_DOUBLE_UNSUPPORTED 93 /* 'double' not supported yet */ #define W_COMP_RANGE 94 /* comparison is always %s due to limited range of data type */ #define W_FUNC_NO_RETURN 95 /* no return statement found */ @@ -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