lint bug or bad syntax?

K. Richard Magill rich at rexago1.UUCP
Thu Jan 30 05:33:13 AEST 1986


This is on a 3b2/300 Sv.2.2.

At a guess, lint doesn't parse much but instead does lots of lexxing.  So,
how do I write this so that lint doesn't complain?  Can I do it without
writing a function Q()?

#define Q() ((void)f(),g())	/* this is actually in a library header file */

main() {
	(void) Q();
	return(0);
}	/* main */

f() {	/* these too are in the library */
	return(0);
}	/* f */

g() {
	return(-1);
}	/* g */

x.c
==============
function returns value which is always ignored
    g	

K. Richard Magill
...decvax!cwruecmp!rexago1!rich
"I'm not crazy! I just don't give a f^K



More information about the Comp.lang.c mailing list