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.

Bruno


Reply via email to