From c0da9fa2bb4660fd250ed2c70904579b4f42aa35 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Tue, 20 Feb 2024 20:15:34 -0500 Subject: [PATCH] Remove obsolete `#undef fail` --- src/link/section.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/link/section.cpp b/src/link/section.cpp index 4c5565e4..4c52b38b 100644 --- a/src/link/section.cpp +++ b/src/link/section.cpp @@ -223,7 +223,6 @@ void sect_CleanupSections(void) static void doSanityChecks(struct Section *section, void *) { // Sanity check the section's type - if (section->type < 0 || section->type >= SECTTYPE_INVALID) { error(NULL, 0, "Section \"%s\" has an invalid type", section->name); return; @@ -299,8 +298,6 @@ static void doSanityChecks(struct Section *section, void *) section->name, section->org + section->size, endaddr(section->type) + 1); } - -#undef fail } void sect_DoSanityChecks(void)