From 393cb7fd7de87c535e4c90af0a024d75842582f9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Jul 2014 15:58:12 +0200 Subject: util/Cast: suppress "unused function" warning by using "inline" --- src/util/Cast.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/util/Cast.hxx b/src/util/Cast.hxx index 8fd1fe5e0..ca4b62832 100644 --- a/src/util/Cast.hxx +++ b/src/util/Cast.hxx @@ -35,14 +35,14 @@ /** * Offset the given pointer by the specified number of bytes. */ -static constexpr void * +static inline constexpr void * OffsetPointer(void *p, ptrdiff_t offset) { return (char *)p + offset; } template -static constexpr T * +static inline constexpr T * OffsetCast(U *p, ptrdiff_t offset) { return reinterpret_cast(OffsetPointer(p, offset)); -- cgit v1.2.3