From f62fab9e3c839c150f22d013bcdfd6aed63a7e60 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 9 Jan 2022 13:05:31 +0100 Subject: Minor cppcheck fixes --- src/apps/gie.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/apps/gie.cpp') diff --git a/src/apps/gie.cpp b/src/apps/gie.cpp index 9c2d3eab..0fb87538 100644 --- a/src/apps/gie.cpp +++ b/src/apps/gie.cpp @@ -1113,8 +1113,7 @@ static int dispatch (const char *cmnd, const char *args) { namespace { // anonymous namespace -struct errno_vs_err_const {const char *the_err_const; int the_errno;}; -static const struct errno_vs_err_const lookup[] = { +static const struct {const char *the_err_const; int the_errno;} lookup[] = { { "invalid_op", PROJ_ERR_INVALID_OP }, { "invalid_op_wrong_syntax", PROJ_ERR_INVALID_OP_WRONG_SYNTAX }, -- cgit v1.2.3