diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/apps/gie.cpp | 3 | ||||
| -rw-r--r-- | src/iso19111/c_api.cpp | 1 | ||||
| -rw-r--r-- | src/iso19111/factory.cpp | 2 |
3 files changed, 2 insertions, 4 deletions
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 }, diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index b8173def..527ccd4f 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -2853,7 +2853,6 @@ proj_get_crs_info_list_from_database(PJ_CONTEXT *ctx, const char *auth_name, break; } else if (params->types[j] == PJ_TYPE_GEODETIC_CRS && (type == PJ_TYPE_GEOCENTRIC_CRS || - type == PJ_TYPE_GEODETIC_CRS || type == PJ_TYPE_GEOGRAPHIC_2D_CRS || type == PJ_TYPE_GEOGRAPHIC_3D_CRS)) { typeValid = true; diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 710fd6d5..3088f468 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -381,7 +381,7 @@ SQLResultSet SQLiteHandle::run(sqlite3_stmt *stmt, const std::string &sql, bool useMaxFloatPrecision) { int nBindField = 1; for (const auto ¶m : parameters) { - const auto paramType = param.type(); + const auto ¶mType = param.type(); if (paramType == SQLValues::Type::STRING) { auto strValue = param.stringValue(); sqlite3_bind_text(stmt, nBindField, strValue.c_str(), |
