From e22d5e5b7fd6af75a7b46c0b9fed7e65025930a2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 10 Sep 2018 14:59:14 +0200 Subject: [PATCH] smbd: Fix a warning gcc complains that the "const" is ignored on function return types. Right now I'm compiling this file a lot, so silence this warning :-) Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/share_mode_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 919e74c0851..a97d8d44930 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -142,7 +142,7 @@ static TDB_DATA locking_key(const struct file_id *id) necessary we can always make this a separate (smaller) cache. ******************************************************************/ -static const DATA_BLOB memcache_key(const struct file_id *id) +static DATA_BLOB memcache_key(const struct file_id *id) { return data_blob_const((const void *)id, sizeof(*id)); } -- 2.11.4.GIT