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

macOS Build Warning on Typecast

    XMLWordPrintable

Details

    • Not for Release Notes
    • Q2/2026 Server Development

    Description

      A typecast incompatibility on macOS results in build warnings such as the following.

      [695/1348] Building CXX object storage/innobase/CMakeFiles/innobase.dir/trx/trx0trx.cc.o
      In file included from /Users/dgosselin/server/storage/innobase/trx/trx0trx.cc:29:
      /Users/dgosselin/server/sql/sql_class.h:3292:18: warning: implicit conversion loses integer precision: 'long' to '__darwin_suseconds_t' (aka 'int') [-Wshorten-64-to-32]
       3292 |         tv_usec= (long) thd->query_start_sec_part();
            |                ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 warning generated.
      

      Attachments

        Activity

          People

            Gosselin Dave Gosselin
            Gosselin Dave Gosselin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.