Try affixing to const in initialization
This commit is contained in:
1 parent
2a68414eec
commit
8e5d5ca1d7
1 file changed
+1
-1
+1
-1
@@ -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 \
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user