[Top][All Lists]

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

Re: open_safer on amd64

From: Bruno Haible
Subject: Re: open_safer on amd64
Date: Thu, 21 May 2009 01:08:34 +0200
User-agent: KMail/1.9.9

Sergey Poznyakoff wrote:
> When trying to compile open-safer.c on amd64 I get:
> open-safer.c: In function 'open_safer':
> open-safer.c:46: warning: 'mode_t' is promoted to 'int' when passed through 
> '...'
> open-safer.c:46: warning: (so you should pass 'int' not 'mode_t' to 'va_arg')
> open-safer.c:46: note: if this code is reached, the program will abort

You can ignore this warning. The code is fine.

We know no way of getting rid of this warning, except by passing fewer warning
options to gcc.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]