From 215b4e4720d358f72c755f7aec8c0cedd7e18102 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sun, 20 Sep 2009 17:12:08 -0700 Subject: directn.cc: fix GCC 4.0 warning "'me' may be used uninitialized in this function" It's an inane warning, as it doesn't consider the loop immediately after the declaration sets the value on the first iteration. Signed-off-by: Steven Noonan --- crawl-ref/source/directn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 49a014ba95..301ac61143 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -629,7 +629,7 @@ void full_describe_view() #endif std::vector fss; formatted_string::parse_string_to_multiple(str, fss); - MenuEntry *me; + MenuEntry *me = NULL; for (unsigned int j = 0; j < fss.size(); ++j) { if (j == 0) -- cgit v1.2.3-54-g00ecf