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

format string warning on aix UINT64PFx (ib_id_t)

    XMLWordPrintable

    Details

      Description

      compile warnings gcc-10

      [ 71%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/srv/srv0start.cc.o
      In file included from /home/mdborg/mariadb-server-10.5/storage/innobase/include/data0type.h:30,
                       from /home/mdborg/mariadb-server-10.5/storage/innobase/include/data0data.h:31,
                       from /home/mdborg/mariadb-server-10.5/storage/innobase/include/row0ftsort.h:30,
                       from /home/mdborg/mariadb-server-10.5/storage/innobase/srv/srv0start.cc:48:
      /home/mdborg/mariadb-server-10.5/storage/innobase/include/fts0priv.inl: In function 'ulint fts_read_object_id(ib_id_t*, const char*)':
      /home/mdborg/mariadb-server-10.5/storage/innobase/include/univ.i:418:24: warning: format '%llx' expects argument of type 'long long unsigned int*', but argument 3 has type 'ib_id_t*' {aka 'long unsigned int*'} [-Wformat=]
        418 | # define UINT64PFx     "%016llx"
            |                        ^~~~~~~~~
      /home/mdborg/mariadb-server-10.5/storage/innobase/include/fts0priv.inl:76:21: note: in expansion of macro 'UINT64PFx'
         76 |  return(sscanf(str, UINT64PFx, id) == 1);
            |                     ^~~~~~~~~
      /home/mdborg/mariadb-server-10.5/storage/innobase/include/univ.i:418:31: note: format string is defined here
        418 | # define UINT64PFx     "%016llx"
            |                         ~~~~~~^
            |                               |
            |                               long long unsigned int*
            |                         %016lx
      

        Attachments

          Activity

            People

            Assignee:
            danblack Daniel Black
            Reporter:
            danblack Daniel Black
            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.