From 8e5d5ca1d73c15007c7f10ba49d98aa0842e0783 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Wed, 12 Nov 2025 14:11:48 -0600 Subject: [PATCH] Try affixing to const in initialization --- src/error/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/error.h b/src/error/error.h index 1fb9218..001d4a8 100644 --- a/src/error/error.h +++ b/src/error/error.h @@ -24,7 +24,7 @@ typedef struct { static const errorcode_t ERROR_OK = 0; static const errorcode_t ERROR_NOT_OK = 1; -#define ERROR_STATE_INIT ((errorstate_t){ \ +#define ERROR_STATE_INIT ((const errorstate_t){ \ .code = ERROR_OK, .message = NULL, .lines = NULL \ })