Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-14193

Fix type error in printf() in packing-test.c when using the v5 toolchain

    • Storage Engines
    • 2
    • StorEng - 2025-03-14

      During testing with the v5 toolchain, we encountered the following type error at compile:

      [2025/02/26 02:46:48.371] /data/mci/7b06d8ccdba9d5119ebae7ade8412101/wiredtiger/test/packing/packing-test.c:62:24: error: format specifies type 'unsigned int' but the argument has type 'int' [-Werror,-Wformat]
      [2025/02/26 02:46:48.371]    62 |         printf("%02x", (u_char)*p & 0xff);
      [2025/02/26 02:46:48.371]       |                 ~~~~   ^~~~~~~~~~~~~~~~~
      [2025/02/26 02:46:48.371]       |                 %02x
      [2025/02/26 02:46:48.371] 1 error generated. 

      This ticket aims to investigate and resolve the issue.

            Assignee:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Reporter:
            jasmine.bi@mongodb.com Jasmine Bi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: