From 7ddbb5591ef05997318b0f56cb1bc2c29fdd3227 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(-) diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index f5fdee5767..68e1509272 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