Bug #10298
closedCIL fails with 'implicit prototype cannot have variadic arguments'
0%
Description
CIL fails with the following error:
/home/zakharov/tools/klever/inst/klever-work/native-scheduler/scheduler/jobs/2138e2b0-627a-419d-a738-3dc01e69cffb/klever-core-work-dir/job/vtg/wall/open/weaver/xfuncs.c.aux:93:[kernel] user error: implicit prototype cannot have variadic arguments
91 ldv_access(ldv_func_arg1);
92
93 return ioctl(ldv_func_arg1, ldv_func_arg2, ldv_func_arg3);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 }
95
[kernel] user error: skipping file example.c that has errors.
Please, find files in the attachment to reploduce.
Files
Updated by Mikhail Mandrykin almost 4 years ago
- Status changed from New to Resolved
Fixed in framac|88d37324. The error should only be issued for implicit prototypes, but the same code was used for argument promotions regardless of the previously declared prototype.
Updated by Mikhail Mandrykin almost 4 years ago
- Status changed from Resolved to Closed
Ilja Zakharov confirmed the fix resolved the original issue. Adding Ilja to reporters and closing the issue.