summaryrefslogtreecommitdiff
path: root/src/cmd6.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:56 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:56 +0100
commitb1f5178bdabafde20eb65df6256b53dc5968b2e2 (patch)
tree1d9700cb26ffbc29f6d3d9c529d7f2292553f16d /src/cmd6.cc
parent450285a178d83411cb7ebce70ca2406c7e74ae18 (diff)
Apply trivial warning cleanups
Diffstat (limited to 'src/cmd6.cc')
-rw-r--r--src/cmd6.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd6.cc b/src/cmd6.cc
index 953bd7dd..903d5a4d 100644
--- a/src/cmd6.cc
+++ b/src/cmd6.cc
@@ -3696,8 +3696,6 @@ static void activate_stick(s16b s, bool_ *obvious, bool_ *use_charge)
*/
void do_cmd_use_staff(void)
{
- int item, ident;
-
bool_ obvious, use_charge;
object_type *o_ptr;
@@ -3723,6 +3721,7 @@ void do_cmd_use_staff(void)
/* Get an item */
q = "Use which staff? ";
s = "You have no staff to use.";
+ int item;
if (!get_item(&item, q, s, (USE_INVEN | USE_FLOOR | USE_EXTRA))) return;
/* Get the item */
@@ -3741,9 +3740,6 @@ void do_cmd_use_staff(void)
/* Take a turn */
energy_use = 100;
- /* Not identified yet */
- ident = FALSE;
-
/* get the chance */
int chance;
{