[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Linux off_t casting?
From: |
charlesrandall4-tinycc |
Subject: |
[Tinycc-devel] Linux off_t casting? |
Date: |
Thu, 14 Jul 2005 21:49:00 -0700 (PDT) |
Hmm. Am I doing something wrong here?
The example code below compiles with no warnings using
"gcc -ansi -pedantic -W -Wextra".
-Charles
address@hidden tcc-apps]$ tcc -v
tcc version 0.9.23
address@hidden tcc-apps]$ tcc off_t.c
off_t.c:10: cannot cast 'int' to 'struct <anonymous>'
address@hidden 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
address@hidden (always forwarded)
- [Tinycc-devel] Linux off_t casting?,
charlesrandall4-tinycc <=