Try affixing to const in initialization
Some checks failed
Build Dusk / build-linux (push) Failing after 49s
Build Dusk / release (push) Has been skipped

This commit is contained in:
2025-11-12 14:11:48 -06:00
parent 2a68414eec
commit 8e5d5ca1d7

View File

@@ -24,7 +24,7 @@ typedef struct {
static const errorcode_t ERROR_OK = 0; static const errorcode_t ERROR_OK = 0;
static const errorcode_t ERROR_NOT_OK = 1; 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 \ .code = ERROR_OK, .message = NULL, .lines = NULL \
}) })