From f0971448107ada91b4be064c9b61155c4104d7d8 Mon Sep 17 00:00:00 2001 From: kristof <Kristof.Szabados@ericsson.com> Date: Sun, 19 Mar 2017 15:40:04 +0100 Subject: [PATCH] the size of this array can be fixed Signed-off-by: kristof <Kristof.Szabados@ericsson.com> --- core/Types.h | 2 +- core/Verdicttype.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Types.h b/core/Types.h index f5bbd5c5f..85b35525f 100644 --- a/core/Types.h +++ b/core/Types.h @@ -42,7 +42,7 @@ typedef bool boolean; #define TRUE true enum verdicttype { NONE = 0, PASS = 1, INCONC = 2, FAIL = 3, ERROR = 4 }; -extern const char * const verdict_name[]; +extern const char * const verdict_name[5]; enum alt_status { ALT_UNCHECKED, ALT_YES, ALT_MAYBE, ALT_NO, ALT_REPEAT, ALT_BREAK }; diff --git a/core/Verdicttype.cc b/core/Verdicttype.cc index 03d9e544f..c395d8d69 100644 --- a/core/Verdicttype.cc +++ b/core/Verdicttype.cc @@ -33,7 +33,7 @@ #define UNBOUND_VERDICT ((verdicttype)(ERROR + 1)) #define IS_VALID(verdict_value) (verdict_value >= NONE && verdict_value <= ERROR) -const char * const verdict_name[] = { "none", "pass", "inconc", "fail", "error" }; +const char * const verdict_name[5] = { "none", "pass", "inconc", "fail", "error" }; VERDICTTYPE::VERDICTTYPE() { -- GitLab