summaryrefslogtreecommitdiff
path: root/src/emap/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
commit447787839e492410611ebe16d01fd5e1ae52e045 (patch)
tree0df52644e225f65e2d23f358dc4db5906c1595be /src/emap/pc.c
parentd37fe74804b94065259703509b4b3dc3f53c30a5 (diff)
downloadevol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz
evol-hercules-447787839e492410611ebe16d01fd5e1ae52e045.zip
Fix different warnings.
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r--src/emap/pc.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c
index 3ad18e8..1ba06c7 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -483,7 +483,9 @@ static int tempN = 0;
static int tempId = 0;
static int tempAmount = 0;
-int epc_dropitem_pre(struct map_session_data *sd, int *nPtr, int *amountPtr)
+int epc_dropitem_pre(struct map_session_data *sd,
+ int *nPtr,
+ int *amountPtr __attribute__ ((unused)))
{
const int n = *nPtr;
if (!sd || n < 0 || n >= MAX_INVENTORY)
@@ -513,7 +515,8 @@ int epc_dropitem_post(int retVal, struct map_session_data *sd, int *nPtr, int *a
return retVal;
}
-int epc_takeitem_pre(struct map_session_data *sd, struct flooritem_data *fitem)
+int epc_takeitem_pre(struct map_session_data *sd __attribute__ ((unused)),
+ struct flooritem_data *fitem)
{
if (!fitem)
{
@@ -527,7 +530,9 @@ int epc_takeitem_pre(struct map_session_data *sd, struct flooritem_data *fitem)
return 1;
}
-int epc_takeitem_post(int retVal, struct map_session_data *sd, struct flooritem_data *fitem)
+int epc_takeitem_post(int retVal,
+ struct map_session_data *sd,
+ struct flooritem_data *fitem __attribute__ ((unused)))
{
if (retVal && tempN == -1 && tempId)
{
@@ -561,7 +566,10 @@ int epc_insert_card_pre(struct map_session_data* sd, int *idx_card, int *idx_equ
return 1;
}
-int epc_insert_card_post(int retVal, struct map_session_data* sd, int *idx_card, int *idx_equip)
+int epc_insert_card_post(int retVal,
+ struct map_session_data* sd,
+ int *idx_card __attribute__ ((unused)),
+ int *idx_equip)
{
if (retVal && *idx_equip == tempN && tempId)
{