Add support for toggleable warnings

This commit is contained in:
ISSOtm
2019-11-18 09:23:32 +01:00
parent 58556f91f7
commit 191ee4ba1f
20 changed files with 362 additions and 131 deletions

View File

@@ -23,6 +23,7 @@
#include "asm/mymath.h"
#include "asm/output.h"
#include "asm/util.h"
#include "asm/warning.h"
#include "extern/err.h"
@@ -133,7 +134,7 @@ struct sSymbol *createsymbol(char *s)
}
if (snprintf((*ppsym)->tzName, MAXSYMLEN + 1, "%s", s) > MAXSYMLEN)
warning("Symbol name is too long: '%s'", s);
warning(WARNING_LONG_STR, "Symbol name is too long: '%s'", s);
(*ppsym)->nValue = 0;
(*ppsym)->nType = 0;