Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(cherry-pick) Fix: correct issue pointed out by static analysis (#3044) #3046

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

tswhison
Copy link
Contributor

Description

Static analysis complained that although a destructor had been defined in class vfio_device, there was not a corresponding copy ctor nor assignment operator. The variable is treated as a Singleton in the application, so no copying occurs. Implementing the constructor and assignment operator as deleted solves the issue.

Collateral (docs, reports, design examples, case IDs):

  • Document Update Required? (Specify FIM/AFU/Scripts)

Tests added:

Tests run:

CI

### Description
Static analysis complained that although a destructor had been defined in class vfio_device, there was not a corresponding copy ctor nor assignment operator. The variable is treated as a Singleton in the application, so no copying occurs.  Implementing the constructor and assignment operator as deleted solves the issue.

### Collateral (docs, reports, design examples, case IDs):


- [ ] Document Update Required? (Specify FIM/AFU/Scripts)

### Tests added:


### Tests run:
CI

Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
@tswhison tswhison self-assigned this Nov 17, 2023
@tswhison tswhison requested a review from a team as a code owner November 17, 2023 22:05
Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
@coveralls
Copy link

coveralls commented Nov 17, 2023

Pull Request Test Coverage Report for Build 6909820449

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.675%

Totals Coverage Status
Change from base Build 6909818324: 0.0%
Covered Lines: 15754
Relevant Lines: 23279

💛 - Coveralls

@tswhison tswhison merged commit d63ca2c into master Nov 17, 2023
27 checks passed
@tswhison tswhison deleted the tswhison/cp_ee42506 branch November 17, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants