[PATCH] covoar: Fix errors building on FreeBSD and clang
chrisj at rtems.org
chrisj at rtems.org
Thu Jul 1 04:39:47 UTC 2021
From: Chris Johns <chrisj at rtems.org>
- The member variable `path_` cannot be a reference and initialised to
a const char* type input. To do so would require there is a temporary with
an unspecified life time.
---
tester/covoar/AddressToLineMapper.h | 2 +-
tester/covoar/Target_aarch64.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tester/covoar/AddressToLineMapper.h b/tester/covoar/AddressToLineMapper.h
index 88bf475..c78aef7 100644
--- a/tester/covoar/AddressToLineMapper.h
+++ b/tester/covoar/AddressToLineMapper.h
@@ -84,7 +84,7 @@ namespace Coverage {
* An iterator pointing to the location in the set that contains the
* source file path of the address.
*/
- const std::string& path_;
+ const std::string path_;
/*!
* The source line number of the address.
diff --git a/tester/covoar/Target_aarch64.h b/tester/covoar/Target_aarch64.h
index 08bd1fb..1502df4 100644
--- a/tester/covoar/Target_aarch64.h
+++ b/tester/covoar/Target_aarch64.h
@@ -44,7 +44,7 @@ namespace Target {
bool isNopLine(
const char* const line,
int& size
- );
+ ) override;
/*!
* This method determines if the specified line from an
--
2.24.1
More information about the devel
mailing list