From ab7324c84ca5a03e216bb3a44e658955bb9bc598 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Tue, 30 Aug 2016 20:58:40 -0400 Subject: [PATCH] Resolved some compile warnings * Removed an unused variable. * Resolved an uninitialized variable issue. --- src/map/intif.c | 2 -- src/map/script.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/map/intif.c b/src/map/intif.c index 329c74629c..efd9ca5e1c 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -3228,8 +3228,6 @@ static bool intif_parse_StorageReceived(int fd) */ static void intif_parse_StorageSaved(int fd) { - TBL_PC *sd = map_id2sd(RFIFOL(fd,2)); - if (RFIFOB(fd, 6)) { switch (RFIFOB(fd, 7)) { case TABLE_INVENTORY: //inventory diff --git a/src/map/script.c b/src/map/script.c index fe414dd2db..d835dc2966 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -7377,7 +7377,7 @@ static void buildin_delitem_delete(struct map_session_data* sd, int idx, int* am { int delamount; struct item *itm = NULL; - struct s_storage *gstor; + struct s_storage *gstor = NULL; switch(loc) { case 1: // cart