[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Alpha compile warning



Hi,

On Mon, Nov 12, 2001 at 07:10:04PM -0600, Donald Maner wrote:
> Getting this warning compiling on an alpha, is it a problem?

No.

> gcc -D__KERNEL__ -I/usr/users/donjr/linux-2.4.15-pre4/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5
> -Wa,-mev6    -DEXPORT_SYMTAB -c journal.c
> journal.c: In function `journal_init_inode':
> journal.c:758: warning: long long int format, loff_t arg (arg 5)

loff_t is 64 bits, and so is long long.  The difference is that on
Alpha, longs are 64-bits already, so loff_t just gets defined as a
long, not a long long.  

So, on Alpha, gcc is warning about the type difference between long
and long long, but in practice both are already 64 bits so there's no
danger.

We could clean up the warning by casting the loff_t value into a (long
long) explicitly during the printk.

Cheers,
 Stephen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]