-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
help wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
In file included from src/fcntl/open.c:2:
src/fcntl/open.c: In function 'open':
src/fcntl/open.c:16:21: warning: 'mode_t' {aka 'short unsigned int'} is promoted to 'int' when passed through '...'
16 | mode = va_arg(ap, mode_t);
./include/stdarg.h:14:44: note: in definition of macro 'va_arg'
14 | #define va_arg(v,l) __builtin_va_arg(v,l)
| ^
src/fcntl/open.c:16:21: note: (so you should pass 'int' not 'mode_t' {aka 'short unsigned int'} to 'va_arg')
16 | mode = va_arg(ap, mode_t);
./include/stdarg.h:14:44: note: in definition of macro 'va_arg'
14 | #define va_arg(v,l) __builtin_va_arg(v,l)
| ^
src/fcntl/open.c:16:21: note: if this code is reached, the program will abort
16 | mode = va_arg(ap, mode_t);
./include/stdarg.h:14:44: note: in definition of macro 'va_arg'
14 | #define va_arg(v,l) __builtin_va_arg(v,l)
| ^
XXX: is this actually an upstream issue?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested