in your variable delcarations try
int result = 0;
On Fri, 21 Feb 1997, Brian Williams - Nashak wrote:
> Ok.. I get a warning: 'result' might be used uninitialized..
> in do_gen_tog... I changed the switch and all to this:
> if (is_abbrev(argument, "anonymous")) {
> result = PRF_TOG_CHK(ch, PRF_ANONYMOUS);
> subcmd = SCMD_ANONYMOUS;
[snip]
> if (result)
> send_to_char(tog_messages[subcmd][TOG_ON], ch);
> else
> send_to_char(tog_messages[subcmd][TOG_OFF], ch);
> I got the same warning before I put the subcmd = parts in.. thought
> that might change it.. still have it though, and I can't see why I'm
> getting it.. any ideas? Thanks..
------------------------------------------------------------
- Check out my homepage at http://www.connecti.com/~jjohns -
- Anything and everything you could want AND the best -
- Realms of Despair page on the net! Get the latest address-
- for Storms of Fire on my page by clicking the link or go -
- to the address page directly at -
- http://www.connecti.com/~jjohns/address.mud -
------------------------------------------------------------
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
| Or send 'info circle' to majordomo@cspo.queensu.ca |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST