We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae8cba3 commit 479bd64Copy full SHA for 479bd64
1 file changed
templates/src/diagnostic.c.erb
@@ -445,8 +445,6 @@ pm_diagnostic_id_name(pm_diagnostic_id_t diag_id) {
445
446
static PRISM_INLINE const char *
447
pm_diagnostic_id_message(pm_diagnostic_id_t diag_id) {
448
- assert(diag_id < PM_DIAGNOSTIC_ID_MAX);
449
-
450
const char *message = diagnostic_messages[diag_id].message;
451
assert(message);
452
@@ -455,8 +453,6 @@ pm_diagnostic_id_message(pm_diagnostic_id_t diag_id) {
455
453
456
454
static PRISM_INLINE uint8_t
457
pm_diagnostic_id_level(pm_diagnostic_id_t diag_id) {
458
459
460
return (uint8_t) diagnostic_messages[diag_id].level;
461
}
462
0 commit comments