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

Ignore "explicit declaration of ret" false positive in s_style

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0, WT11.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage Engines - 2022-07-25

      Summary
      s_string checks the explicit declaration of an integer return variable. However, it gives a false warning for functions that have int as a substring in the name, and pass ret as an argument.

      E.g.
      __wt_call_log_print_return(conn, session, ret, "")
      Acceptance Criteria (Definition of Done)

      s_string should not give a warning for functions that have int as a substring in the name, and pass ret as an argument.

            Assignee:
            andrew.morton@mongodb.com Andrew Morton
            Reporter:
            siddhartha.mahajan@mongodb.com Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: