Resolved some compile warnings

* Removed an unused variable.
* Resolved an uninitialized variable issue.
This commit is contained in:
aleos89 2016-08-30 20:58:40 -04:00
parent bd36b294ad
commit ab7324c84c
2 changed files with 1 additions and 3 deletions

View File

@ -3228,8 +3228,6 @@ static bool intif_parse_StorageReceived(int fd)
*/ */
static void intif_parse_StorageSaved(int fd) static void intif_parse_StorageSaved(int fd)
{ {
TBL_PC *sd = map_id2sd(RFIFOL(fd,2));
if (RFIFOB(fd, 6)) { if (RFIFOB(fd, 6)) {
switch (RFIFOB(fd, 7)) { switch (RFIFOB(fd, 7)) {
case TABLE_INVENTORY: //inventory case TABLE_INVENTORY: //inventory

View File

@ -7377,7 +7377,7 @@ static void buildin_delitem_delete(struct map_session_data* sd, int idx, int* am
{ {
int delamount; int delamount;
struct item *itm = NULL; struct item *itm = NULL;
struct s_storage *gstor; struct s_storage *gstor = NULL;
switch(loc) { switch(loc) {
case 1: // cart case 1: // cart