Quiet address sanitizer warnings

Also,
* Fix some doxygen issues
* Fix address sanitizer issues in rsmitst

Change-Id: Ie6c6fd9af5c418210b7064e79650fb92cd4a5e2b


[ROCm/rocm_smi_lib commit: 63064b0000]
Este commit está contenido en:
Chris Freehill
2020-11-04 17:59:22 -06:00
padre 0fb36c2f41
commit 6fc9f802ae
Se han modificado 23 ficheros con 317 adiciones y 181 borrados
@@ -80,6 +80,10 @@ void TestBase::MakeHeaderStr(const char *inStr,
}
}
void TestBase::SetUp(void) {
SetUp(0);
}
void TestBase::SetUp(uint64_t init_flags) {
std::string label;
rsmi_status_t err;
@@ -59,7 +59,8 @@ class TestBase {
// i.e. init runtime, prepare packet...
// The init_flags option will override any flags set for the whole test
// suite
virtual void SetUp(uint64_t init_flags = 0);
void SetUp(uint64_t init_flags);
virtual void SetUp(void);
// @Brief: Core measurement codes executing here
virtual void Run(void);
@@ -80,9 +80,8 @@ static const char * kRasErrStateStrings[] = {
"Error Unknown", // RSMI_RAS_ERR_STATE_PARITY
"Single, Correctable", // RSMI_RAS_ERR_STATE_SING_C
"Multiple, Uncorrectable", // RSMI_RAS_ERR_STATE_MULT_UC
"Poison" // RSMI_RAS_ERR_STATE_POISON
"Off", // RSMI_RAS_ERR_STATE_DISABLED
"On", // RSMI_RAS_ERR_STATE_ENABLED
"Poison", // RSMI_RAS_ERR_STATE_POISON
"Enabled", // RSMI_RAS_ERR_STATE_ENABLED
};
static_assert(
sizeof(kRasErrStateStrings)/sizeof(char *) == (RSMI_RAS_ERR_STATE_LAST + 1),