Hmm. Am I doing something wrong here?

The example code below compiles with no warnings using
"gcc -ansi -pedantic -W -Wextra".

-Charles

[EMAIL PROTECTED] tcc-apps]$ tcc -v
tcc version 0.9.23

[EMAIL PROTECTED] tcc-apps]$ tcc off_t.c
off_t.c:10: cannot cast 'int' to 'struct <anonymous>'

[EMAIL PROTECTED] tcc-apps]$ cat -n off_t.c
     1  #define _LARGEFILE_SOURCE
     2  #define _FILE_OFFSET_BITS 64
     3
     4  #include <sys/types.h>
     5  #include <unistd.h>
     6
     7  int main(void)
     8  {
     9    off_t j;
    10    j = 0;     /* cast required */
    11    j++;       /* does not work */
    12    j = j + 4; /* casts required */
    13    return 0;
    14  }


Charles F. Randall, IV
[EMAIL PROTECTED] (always forwarded)


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

Reply via email to