diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-19 02:46:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-19 02:49:41 +0300 |
commit | c2c1322b230dc0f564397ac68615640f1083ee56 (patch) | |
tree | 9cbdf777c0636e16963f368cb9d9fc48f094ff13 /src/map/storage.c | |
parent | 5b74faa8afd04771af7acb918072ea71a3db475f (diff) | |
download | hercules-c2c1322b230dc0f564397ac68615640f1083ee56.tar.gz hercules-c2c1322b230dc0f564397ac68615640f1083ee56.tar.bz2 hercules-c2c1322b230dc0f564397ac68615640f1083ee56.tar.xz hercules-c2c1322b230dc0f564397ac68615640f1083ee56.zip |
Fix some cast discards 'const' qualifier from pointer target type warnings.
Add -Wcast-qual into configure comment.
Diffstat (limited to 'src/map/storage.c')
-rw-r--r-- | src/map/storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/storage.c b/src/map/storage.c index f938a41ad..ceac85916 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -52,8 +52,8 @@ struct guild_storage_interface *gstorage; *------------------------------------------*/ int storage_comp_item(const void *i1_, const void *i2_) { - struct item *i1 = (struct item *)i1_; - struct item *i2 = (struct item *)i2_; + const struct item *i1 = (const struct item *)i1_; + const struct item *i2 = (const struct item *)i2_; if (i1->nameid == i2->nameid) return 0; |