Hello,

for the following program,

typedef int int_array[1];

typedef struct {
    int_array arr;
} my_struct;

int_array const * get_array(const my_struct *s) {
    return &(s->arr);
}

when compiling with tcc, I got the following warning:

t.c:8: warning: assignment discards qualifiers from pointer target type

whereas I didn't expect any warning (and didn't get any with GCC and
CLANG with -W -Wall -Wextra)

--
 Regards,
  Patrick Pélissier

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to