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

Warning C4090: 'function': different 'const' qualifiers for make-check-test on * Windows 64-bit CMake

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      We have lots of warnings for the test make-check-test on * Windows 64-bit CMake:

      ...
      [2021/11/26 14:49:48.976] c:\data\mci\c58839b1ce968340a0c347e42658e948\wiredtiger\src\include\btree_inline.h(1181): warning C4090: 'function': different 'const' qualifiers
      [2021/11/26 14:49:48.976] c:\data\mci\c58839b1ce968340a0c347e42658e948\wiredtiger\src\include\btree_inline.h(1191): warning C4090: 'function': different 'const' qualifiers
      [2021/11/26 14:49:48.976] c:\data\mci\c58839b1ce968340a0c347e42658e948\wiredtiger\src\include\btree_inline.h(1245): warning C4090: 'function': different 'const' qualifiers
      [2021/11/26 14:49:48.976] c:\data\mci\c58839b1ce968340a0c347e42658e948\wiredtiger\src\include\cursor_inline.h(478): warning C4090: 'function': different 'const' qualifiers
      ...

      It seems that the impacted function is wt_row_leaf_key_info.

      Definition of done:

      • Understand why the warning is raised.
      • Check the function's signature and the arg types. See if they match the arguments used when the function is called.
      • Fix the warnings.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: