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

Use wt_off_t to avoid incompatible pointer types

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.7, 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2021-05-03

      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
      

            Assignee:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Reporter:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: