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

Use wt_off_t to avoid incompatible pointer types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0, WT10.0.1
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Storage - Ra 2021-05-03

      Description

      This started happening after WT-7420 was merged.

      libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../../../ext/storage_sources/local_store -I../../.. -I../../.. -I../../../../src/include -std=c11 -Weverything -Werror -Wno-cast-align -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-packed -Wno-padded -Wno-reserved-id-macro -Wno-zero-length-array -Wno-cast-qual -Wno-thread-safety-analysis -Wno-disabled-macro-expansion -Wno-extra-semi-stmt -Wno-unknown-warning-option -Wno-poison-system-directories -MT local_store.lo -MD -MP -MF .deps/local_store.Tpo -c ../../../../ext/storage_sources/local_store/local_store.c  -fno-common -DPIC -o .libs/local_store.o
      ../../../../ext/storage_sources/local_store/local_store.c:648:64: error: incompatible pointer types passing 'ssize_t *'
            (aka 'long *') to parameter of type 'wt_off_t *' (aka 'long long *') [-Werror,-Wincompatible-pointer-types]
          if ((ret = wt_fs->fs_size(wt_fs, session, flush->src_path, &file_size)) != 0) {
                                                                     ^~~~~~~~~~
      1 error generated.
      make[2]: *** [local_store.lo] Error 1
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2
      

        Attachments

          Activity

            People

            Assignee:
            alex.cameron Alex Cameron
            Reporter:
            alex.cameron Alex Cameron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: