9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] 8c funny
@ 2005-05-26 17:10 Brantley Coile
  2005-05-26 17:16 ` Russ Cox
  2005-05-26 17:18 ` Bruce Ellis
  0 siblings, 2 replies; 8+ messages in thread
From: Brantley Coile @ 2005-05-26 17:10 UTC (permalink / raw)
  To: 9fans

term% 8c -FVw busted.c
warning: busted.c:5 used and not set: b
term% cat busted.c
#include <u.h>
#include <libc.h>

void
main(void)
{
	vlong a;

	int b;

	if (a == 0)
		exits(nil);
	if (b == 0)
		exits(nil);
	exits(nil);
}


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [9fans] 8c funny
@ 2005-05-26 18:44 Ben Huntsman
  2005-05-26 18:55 ` jmk
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Huntsman @ 2005-05-26 18:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

>it works on alpha and amd64...

Really stupid question-
  we have an amd64 compiler??


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [9fans] 8c funny
@ 2005-05-26 16:52 Brantley Coile
  2005-05-26 17:02 ` Bruce Ellis
  0 siblings, 1 reply; 8+ messages in thread
From: Brantley Coile @ 2005-05-26 16:52 UTC (permalink / raw)
  To: 9fans

Any one seen this before?

term% cat busted.c
#include <u.h>
#include <libc.h>

void
main(void)
{
	vlong a;
	int b;

	if (a == b)
		exits(nil);
	exits(nil);
}
term% 8c -FVw busted.c
warning: busted.c:5 used and not set: b
term% 

Note that a doesn't get tagged as used and not set.


 Brantley


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-05-26 18:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-26 17:10 [9fans] 8c funny Brantley Coile
2005-05-26 17:16 ` Russ Cox
2005-05-26 17:18 ` Bruce Ellis
2005-05-26 18:23   ` Charles Forsyth
  -- strict thread matches above, loose matches on Subject: below --
2005-05-26 18:44 Ben Huntsman
2005-05-26 18:55 ` jmk
2005-05-26 16:52 Brantley Coile
2005-05-26 17:02 ` Bruce Ellis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).