I use `tcc version 0.9.27 - 1432574 (x86_64 Linux)` and the code I'm testing is:
#include <stdio.h>
#include <string.h>
int main(void)
{
char *s = "Hello, world!";
printf("String length is %zu characters long.\n", strlen(s));
}
I execute it with the following command:
tcc -Wall -std=c11 -o test_strlen test_strlen.c
The warning is
tmp.c:6: error: assignment discards qualifiers from pointer target type
With GCC and Clang does not throw any warning message.
The command I used for both is:
gcc -Wall -Wextra -Wpedantic -std=c11 -o test_strlen test_strlen.c
clang -Wall -Wextra -Wpedantic -std=c11 -o test_strlen test_strlen.c
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel