From b2a1f5f40ec0663d57a18f97e04d1ce4901af468 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Thu, 13 Jul 2017 11:45:59 +0200 Subject: Fix const issue in afb-auth.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fields type and loa were declared as const. This worked well for C compilers that are allowing to initialize constant fixed structures. But when compiling with C++, it is no more easy to create initialized structure explicitely. In C++, the solution is to use C++14 constexpr functions. But for using these function, const must be removed. Bug-AGL: SPEC-741 Change-Id: Ib332949b63892d9829db31d3c1a64d7d388db744 Signed-off-by: José Bollo --- include/afb/afb-auth.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/afb/afb-auth.h') diff --git a/include/afb/afb-auth.h b/include/afb/afb-auth.h index ee089e7f..9ef58208 100644 --- a/include/afb/afb-auth.h +++ b/include/afb/afb-auth.h @@ -34,10 +34,10 @@ enum afb_auth_type struct afb_auth { - const enum afb_auth_type type; + enum afb_auth_type type; union { const char *text; - const unsigned loa; + unsigned loa; const struct afb_auth *first; }; const struct afb_auth *next; -- cgit 1.2.3-korg