Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22408

largepages: osx compile warning fix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.5.4
    • Component/s: Compiling, Server
    • 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)); }
      

        Attachments

          Activity

            People

            Assignee:
            svoj Sergey Vojtovich
            Reporter:
            anel Anel Husakovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: