Sheldon Hearn <[EMAIL PROTECTED]> writes:
> static inline void
> xdaemonwarn(char *fmt, ...)
> {
> va_list ap;
>
> va_start(ap, fmt);
> if (!daemon_quiet)
> warn(fmt, ap);
> va_end(ap);
>
> return;
> }
>
> GCC gives "syntax error before 'void'". Fair enough.
$ cat test.c
static inline void
blah(void) { printf("yada yada yada\n"); }
main() { blah(); }
$ gcc -ansi -o test test.c
test.c:2: syntax error before `void'
$ gcc -o test test.c
$ cat test2.c
static __inline void
blah(void) { printf("yada yada yada\n"); }
main() { blah(); }
$ gcc -ansi -o test2 test2.c
$
So either get rid of the -ansi flag, or use __inline
instead of inline.
Regards,
Joel Wilsson
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message