Try affixing to const in initialization
This commit is contained in:
@@ -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 \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user