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

@@ -17,6 +17,7 @@
#include "asm/main.h"
#include "asm/output.h"
#include "asm/util.h"
#include "asm/warning.h"
#define CHARMAP_HASH_SIZE (1 << 9)
@@ -39,7 +40,7 @@ static void warnSectionCharmap(void)
if (warned)
return;
warning("Using 'charmap' within a section when the current charmap is 'main' is deprecated");
warning(WARNING_OBSOLETE, "Using 'charmap' within a section when the current charmap is 'main' is deprecated");
warned = true;
}