[MDEV-22408] largepages: osx compile warning fix Created: 2020-04-29  Updated: 2020-05-18  Resolved: 2020-05-18

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Server
Affects Version/s: None
Fix Version/s: 10.5.4

Type: Bug Priority: Major
Reporter: Anel Husakovic Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None
Environment:

OSX



 Description   

my_is_2pow is only used on linux.
fixes compile warning:

mysys/my_largepage.c:48:23: warning: unused function 'my_is_2pow' [-Wunused-function]
 
static inline my_bool my_is_2pow(size_t n) { return !((n) & ((n) - 1)); }


Generated at Thu Feb 08 09:14:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.