diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /dev-util/oprofile/files/gcc12.patch | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'dev-util/oprofile/files/gcc12.patch')
-rw-r--r-- | dev-util/oprofile/files/gcc12.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-util/oprofile/files/gcc12.patch b/dev-util/oprofile/files/gcc12.patch new file mode 100644 index 000000000000..96f56d6a7ea7 --- /dev/null +++ b/dev-util/oprofile/files/gcc12.patch @@ -0,0 +1,27 @@ +`gcc-12` will forbid std::string(nullptr_t) constructors +(as they never had a defined behaviour): + + operf_stats.cpp:182:24: error: use of deleted function 'std::__cxx11::basic_string...; std::nullptr_t = std::nullptr_t]' + 182 | return NULL; + | ^~~~ + +Signed-off-by: Sergei Trofimovich <slyich@gmail.com> +--- + libperf_events/operf_stats.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libperf_events/operf_stats.cpp b/libperf_events/operf_stats.cpp +index 3cc28a75..a7bd0aec 100644 +--- a/libperf_events/operf_stats.cpp ++++ b/libperf_events/operf_stats.cpp +@@ -179,7 +179,7 @@ static string create_stats_dir(string const & cur_sampledir) + if (rc && (errno != EEXIST)) { + cerr << "Error trying to create stats dir. " << endl; + perror("mkdir failed with"); +- return NULL; ++ return ""; + } + return stats_dir; + } +-- +2.33.1 |