Non-standard ;; and SYSINIT().
John Baldwin
john at baldwin.cx
Tue Feb 3 14:35:28 PST 2004
On Tuesday 03 February 2004 04:45 pm, Pawel Jakub Dawidek wrote:
> Hello.
>
> It looks like SYSINIT() macro is defined with trailing ;.
> Maybe there was some reason to do so, but I assume that this is a bug.
> There are many, many calls where an extra ; is added after SYSINIT().
> SYSUNINIT() is defined without trailing ; ...
>
> This will be ok, but ;; is not supported by ICO C (gcc -pedantic
> tell me that).
>
> Here is a patch that fix this issue at least for SYSINIT():
>
> http://garage.freebsd.pl/patches/SYSINIT.patch
>
> The most important part is a change in sys/kernel.h, that removes
> trailing ; from SYSINIT() definition:
>
> - DATA_SET(sysinit_set,uniquifier ## _sys_init);
> + DATA_SET(sysinit_set,uniquifier ## _sys_init)
>
> AND REMEMBER! I'm not going to commit it (without strong approvals)!:)
Yes, please. SYSINIT() without ;'s confuse "smart" editors that try to do
autoindent.
--
John Baldwin <john at baldwin.cx> <>< http://www.baldwin.cx/~john/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-arch
mailing list