OFS / opae-sdk

Open Programmable Acceleration Engine
https://ofs.github.io
BSD 3-Clause "New" or "Revised" License
258 stars 82 forks source link

Fix: correct issue pointed out by static analysis #3044

Closed tswhison closed 11 months ago

tswhison commented 11 months ago

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):

Tests added:

Tests run:

CI