From 0a39c68afdf8849c6ad8d01613fe62ff3c2f93e3 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Mon, 15 Mar 2021 08:36:01 -0400 Subject: [PATCH] Updates for ubuntu20's compiler --- include/interfaces/idapro/STARSInstruction.h | 3 +-- include/interfaces/idapro/all.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/interfaces/idapro/STARSInstruction.h b/include/interfaces/idapro/STARSInstruction.h index 24676162..4b9e11e2 100644 --- a/include/interfaces/idapro/STARSInstruction.h +++ b/include/interfaces/idapro/STARSInstruction.h @@ -78,9 +78,8 @@ class STARS_IDA_Instruction_t : public STARS_Instruction_t public: // Constructors and destructors - STARS_IDA_Instruction_t(const STARS_InstructionID_t& p_id) : STARS_Instruction_t(p_id), ImplicitDEFs(false) { + STARS_IDA_Instruction_t(const STARS_InstructionID_t& p_id) : STARSCmd({}), STARS_Instruction_t(p_id), ImplicitDEFs(false) { if (STARS_IsSSAMarkerPseudoID(p_id.GetIDWithinFile())) { // SSA marker pseudo-inst - (void) memset(&(STARScmd), 0, sizeof(STARScmd)); STARScmd.itype = NN_fnop; STARScmd.size = 1; } diff --git a/include/interfaces/idapro/all.h b/include/interfaces/idapro/all.h index 5e74bffb..47d292be 100644 --- a/include/interfaces/idapro/all.h +++ b/include/interfaces/idapro/all.h @@ -5,6 +5,7 @@ // eventually move these into idapro/all.h #pragma GCC diagnostic ignored "-Wparentheses" #pragma GCC diagnostic ignored "-Wsign-compare" +#pragma GCC diagnostic ignored "-Wclass-memaccess" #include <fpro.h> #include <pro.h> #include <ida.hpp> @@ -17,6 +18,7 @@ #include <segment.hpp> #pragma GCC diagnostic pop #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #include <assert.h> -- GitLab