shithub: rgbds

Download patch

ref: f710f21ad879d5a8acea318cebc13abd97666edf
parent: 90fefb468b6194f76dd6e3b94baad69a4529c018
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Dec 5 19:56:18 EST 2019

Reorder warnings alphabetically

--- a/include/asm/warning.h
+++ b/include/asm/warning.h
@@ -4,14 +4,14 @@
 extern unsigned int nbErrors;
 
 enum WarningID {
-	WARNING_USER,
-	WARNING_OBSOLETE,
 	WARNING_BUILTIN_ARG,
-	WARNING_LARGE_CONSTANT,
-	WARNING_SHIFT,
 	WARNING_DIV,
 	WARNING_EMPTY_ENTRY,
+	WARNING_LARGE_CONSTANT,
 	WARNING_LONG_STR,
+	WARNING_OBSOLETE,
+	WARNING_SHIFT,
+	WARNING_USER,
 
 	NB_WARNINGS,
 
--- a/src/asm/warning.c
+++ b/src/asm/warning.c
@@ -55,14 +55,14 @@
 }
 
 static char const *warningFlags[NB_WARNINGS_ALL] = {
-	"user",
-	"obsolete",
 	"builtin-args",
-	"large-constant",
-	"shift",
 	"div",
 	"empty-entry",
+	"large-constant",
 	"long-string",
+	"obsolete",
+	"shift",
+	"user",
 
 	/* Meta warnings */
 	"all",
@@ -77,8 +77,8 @@
 /* Warnings that probably indicate an error */
 static uint8_t const _wallCommands[] = {
 	WARNING_BUILTIN_ARG,
-	WARNING_LARGE_CONSTANT,
 	WARNING_EMPTY_ENTRY,
+	WARNING_LARGE_CONSTANT,
 	WARNING_LONG_STR,
 	META_WARNING_DONE
 };
@@ -91,14 +91,14 @@
 
 /* Literally everything. Notably useful for testing */
 static uint8_t const _weverythingCommands[] = {
-	WARNING_USER,
-	WARNING_OBSOLETE,
 	WARNING_BUILTIN_ARG,
-	WARNING_LARGE_CONSTANT,
-	WARNING_SHIFT,
 	WARNING_DIV,
 	WARNING_EMPTY_ENTRY,
+	WARNING_LARGE_CONSTANT,
 	WARNING_LONG_STR,
+	WARNING_OBSOLETE,
+	WARNING_SHIFT,
+	WARNING_USER,
 	META_WARNING_DONE
 };