summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-09 21:44:51 +0100
committerHaru <haru@dotalux.com>2016-01-09 21:44:51 +0100
commit4e4ecd0c82291a40dc7a70da76a93c58dc6dba81 (patch)
tree011a6e3190fcf7b0cdd505d7bb4fbaa4a483f461
parente248c3394d7a2a76cfb39e0955ebab648ecc2bf0 (diff)
downloadhercules-4e4ecd0c82291a40dc7a70da76a93c58dc6dba81.tar.gz
hercules-4e4ecd0c82291a40dc7a70da76a93c58dc6dba81.tar.bz2
hercules-4e4ecd0c82291a40dc7a70da76a93c58dc6dba81.tar.xz
hercules-4e4ecd0c82291a40dc7a70da76a93c58dc6dba81.zip
Added the unused attribute to BL_UCAST / BL_UCCAST
- Fixes a warning when including map.h and not using those functions, depending on the compiler verbosity Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 4c74d352c..13b7880bd 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -866,6 +866,7 @@ typedef struct elemental_data TBL_ELEM;
* object is passed to BL_UCAST. It's declared as static inline to let the
* compiler optimize out the function call overhead.
*/
+static inline struct block_list *BL_UCAST_(struct block_list *bl) __attribute__((unused));
static inline struct block_list *BL_UCAST_(struct block_list *bl)
{
return bl;
@@ -894,6 +895,7 @@ static inline struct block_list *BL_UCAST_(struct block_list *bl)
* object is passed to BL_UCAST. It's declared as static inline to let the
* compiler optimize out the function call overhead.
*/
+static inline const struct block_list *BL_UCCAST_(const struct block_list *bl) __attribute__((unused));
static inline const struct block_list *BL_UCCAST_(const struct block_list *bl)
{
return bl;