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

Build fails with clang on amd64

    XMLWordPrintable

Details

    Description

      When building MariaDB 10.0.14 using clang 3.3 on FreeBSD amd64, there's a compile error in storage/connect/filamap.h

      107: virtual int GetNextPos(void)

      {return (int)Fpos + Nrec;}

      error: cast from pointer to smaller type 'int' loses information

      int is a 32-bit type this will not fit a memory address of a 64-bit platform. This should probably be handled using a uintptr_t type which should be available on all platforms.

      Attachments

        1. patch-storage_connect_array.cpp
          0.4 kB
          Bernard Spil
        2. patch-storage_connect_filamap.cpp
          0.8 kB
          Bernard Spil
        3. patch-storage_connect_filamap.h
          0.6 kB
          Bernard Spil

        Issue Links

          Activity

            People

              bertrandop Olivier Bertrand
              spil Bernard Spil
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.