Skip to content

Commit

Permalink
v.in.pdal: cast enum value to int (#1819)
Browse files Browse the repository at this point in the history
Fixes -Wformat compiler warning:
<format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘pdal::Dimension::Id’>
  • Loading branch information
nilason committed Aug 24, 2021
1 parent 9a2a893 commit 027ce9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector/v.in.pdal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ int main(int argc, char *argv[])
G_fatal_error(_("Dataset doesn't have requested dimension '%s'"
" with ID %d (possibly a programming error)"),
pdal::Dimension::name(dim_to_use_as_z).c_str(),
dim_to_use_as_z);
static_cast<int>(dim_to_use_as_z));

struct line_pnts *points = Vect_new_line_struct();
struct line_cats *cats = Vect_new_cats_struct();
Expand Down

0 comments on commit 027ce9f

Please sign in to comment.