From: Volker Lendecke Date: Mon, 10 Sep 2018 12:59:14 +0000 (+0200) Subject: smbd: Fix a warning X-Git-Tag: tdb-1.3.17~1455 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e22d5e5b7fd6af75a7b46c0b9fed7e65025930a2;p=thirdparty%2Fsamba.git 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 --- 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)); }