From c90c13ca4a6e873e6ed31a5a69f343eca03a414f Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sat, 22 Oct 2022 20:31:31 -0400 Subject: Warning on defining variables with zero size --- ui/commands.h | 2 +- ui/uitypes.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/commands.h b/ui/commands.h index 2b1ab86c..3530e8ad 100644 --- a/ui/commands.h +++ b/ui/commands.h @@ -16,7 +16,7 @@ bool BINARYNINJAUIAPI inputNameForType( bool BINARYNINJAUIAPI InferArraySize(TypeRef& type, size_t selectionSize); bool BINARYNINJAUIAPI askForNewType(QWidget* parent, BinaryViewRef data, FunctionRef func, const std::string& title, - TypeRef& type, BinaryNinja::QualifiedName& name); + bool allowZeroSize, TypeRef& type, BinaryNinja::QualifiedName& name); bool BINARYNINJAUIAPI inputNewType(QWidget* parent, BinaryViewRef data, FunctionRef currentFunction, uint64_t currentAddr, size_t selectionSize, HighlightTokenState& highlight); bool BINARYNINJAUIAPI createInferredMember(QWidget* parent, BinaryViewRef data, HighlightTokenState& highlight, diff --git a/ui/uitypes.h b/ui/uitypes.h index b47444e4..e0348acd 100644 --- a/ui/uitypes.h +++ b/ui/uitypes.h @@ -6,14 +6,14 @@ // there are changes to the API that affect linking, including new functions, // new types, modifications to existing functions or types, or new versions // of the Qt libraries. -#define BN_CURRENT_UI_ABI_VERSION 6 +#define BN_CURRENT_UI_ABI_VERSION 7 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions, or a new version of Qt. -#define BN_MINIMUM_UI_ABI_VERSION 5 +#define BN_MINIMUM_UI_ABI_VERSION 7 #ifdef __GNUC__ #ifdef BINARYNINJAUI_LIBRARY -- cgit v1.3.1