[MDEV-28231] format string warning on aix UINT64PFx (ib_id_t) Created: 2022-04-04  Updated: 2022-04-08  Resolved: 2022-04-04

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Full-text Search, Storage Engine - InnoDB
Affects Version/s: 10.5.15
Fix Version/s: 10.5.16, 10.6.8, 10.7.4, 10.8.3, 10.9.1

Type: Bug Priority: Minor
Reporter: Daniel Black Assignee: Daniel Black
Resolution: Fixed Votes: 0
Labels: None
Environment:

aix, gcc-10



 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


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