projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
[fw/sdcc]
/
src
/
SDCCerr.h
diff --git
a/src/SDCCerr.h
b/src/SDCCerr.h
index e523cc7a4c81db729e0bb9dd2d1b4b4db476a125..7b707445e507863b294927acab5856f79af91380 100644
(file)
--- 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 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 */
#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 */
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*/
};
char disabled[MAX_ERROR_WARNING]; /* 1=warning disabled*/
};
@@
-310,4
+311,11
@@
disabled - Disable output of specified warning
void setWarningDisabled (int errNum) ;
void setWarningDisabled (int errNum) ;
+/*
+-------------------------------------------------------------------------------
+Set the flag to treat warnings as errors
+-------------------------------------------------------------------------------
+*/
+void setWError (int flag);
+
#endif
#endif