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

Multiple warnings due to const qualifier violation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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 Unassigned
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: