Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
Fix build with gcc 12
Browse files Browse the repository at this point in the history
gcc 12 changed header dependencies. It now requires to explicitly
include the '<memory>' C++ header for using 'std::unique_ptr'.
Otherwise, a build error will occur.

See documentation[1] about porting to gcc 12.

Fixes #2940

[1] https://gcc.gnu.org/gcc-12/porting_to.html
  • Loading branch information
dbermond authored and Sherry-Lin committed Jun 7, 2022
1 parent 851bb73 commit b0d1e26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <gtest/gtest.h>
#include <map>
#include <memory>
#include <list>
#include <algorithm>

Expand Down
1 change: 1 addition & 0 deletions tests/unit/suites/tracer/linux/mfx_tracer_test_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <gtest/gtest.h>
#include <map>
#include <memory>
#include <list>
#include <algorithm>

Expand Down

0 comments on commit b0d1e26

Please sign in to comment.