Multiple warnings due to const qualifier violation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • WT2.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None

      The Visual C++ compiler reports the following warnings in the WiredTiger code. It seems most of those are because methods, which seem to only be doing reading should have the respective input arguments decorated with 'const':

      e:\workspace\mongo\src\third_party\wiredtiger\src\include\btree.i(794) : warning C4090: 'function' : different 'const' qualifiers
      e:\workspace\mongo\src\third_party\wiredtiger\src\include\cursor.i(251) : warning C4090: 'function' : different 'const' qualifiers
      src\third_party\wiredtiger\src\btree\row_key.c(182) : warning C4090: 'function' : different 'const' qualifiers
      src\third_party\wiredtiger\src\btree\row_key.c(288) : warning C4090: 'function' : different 'const' qualifiers
      src\third_party\wiredtiger\src\btree\row_srch.c(213) : warning C4090: 'function' : different 'const' qualifiers
      src\third_party\wiredtiger\src\btree\row_srch.c(247) : warning C4090: 'function' : different 'const' qualifiers
      src\third_party\wiredtiger\src\cursor\cur_ds.c(493) : warning C4090: 'function' : different 'const' qualifiers
      src\third_party\wiredtiger\src\cursor\cur_ds.c(496) : warning C4090: 'function' : different 'const' qualifiers
      

              Assignee:
              Unassigned
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: