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

Commit b0d1e26

Browse files
dbermondSherry-Lin
authored andcommitted
Fix build with gcc 12
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
1 parent 851bb73 commit b0d1e26

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_main.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <gtest/gtest.h>
2828
#include <map>
29+
#include <memory>
2930
#include <list>
3031
#include <algorithm>
3132

tests/unit/suites/tracer/linux/mfx_tracer_test_main.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <gtest/gtest.h>
2828
#include <map>
29+
#include <memory>
2930
#include <list>
3031
#include <algorithm>
3132

0 commit comments

Comments
 (0)