prog.c: In function 'main':
prog.c:16:33: error: initialization from incompatible pointer type [-Werror]
#define AAS_CONST_STR(str) ((aas_t) ((AAS_STATIC_PREFIX str) + 1))
^
prog.c:38:16: note: in expansion of macro 'AAS_CONST_STR'
char* s1 = AAS_CONST_STR("test1");
^
prog.c:39:16: error: initialization from incompatible pointer type [-Werror]
char* s2 = aas_allocate(10);
^
prog.c:43:14: error: passing argument 1 of 'aas_free' from incompatible pointer type [-Werror]
aas_free(s1);
^
prog.c:28:6: note: expected 'aas_t' but argument is of type 'char *'
void aas_free(aas_t aas) {
^
prog.c:44:14: error: passing argument 1 of 'aas_free' from incompatible pointer type [-Werror]
aas_free(s2);
^
prog.c:28:6: note: expected 'aas_t' but argument is of type 'char *'
void aas_free(aas_t aas) {
^
cc1: all warnings being treated as errors