Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
ported to C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavblazek committed Mar 28, 2023
1 parent c21af2f commit fdd0f13
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion externals/buildsys/common
Submodule common updated 1 files
+4 −0 deb.mk
2 changes: 1 addition & 1 deletion externals/libgeo
2 changes: 1 addition & 1 deletion externals/libgeometry
2 changes: 1 addition & 1 deletion externals/libimgproc
2 changes: 1 addition & 1 deletion externals/libjsoncpp
2 changes: 1 addition & 1 deletion externals/libmath
2 changes: 1 addition & 1 deletion externals/libservice
2 changes: 1 addition & 1 deletion mapproxy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ enable_language(Fortran)
project(vts-mapproxy)
# by default, this is OSS build (can be overrided by customer machinery)
set(BUILDSYS_DEFAULT_CUSTOMER_NAME oss)
set(BUILDSYS_CPP_STANDARD 14)
set(BUILDSYS_CPP_STANDARD 17)
include(buildsys/cmake/buildsys.cmake)

enable_OpenMP()
Expand Down
1 change: 1 addition & 0 deletions mapproxy/src/mapproxy/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ void Core::generate_impl(const http::Request &request

namespace {

[[maybe_unused]]
const std::string& getItem(const std::string &s)
{
return s;
Expand Down
4 changes: 4 additions & 0 deletions mapproxy/src/mapproxy/gdalsupport/gdalsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,13 @@ class ShRequest : boost::noncopyable, public ShRequestBase {
void setError(Lock&, const EmptyGeoData &exc);

GdalWarper::Raster getRaster(Lock &lock);

[[maybe_unused]]
GdalWarper::Raster getRaster(bi::interprocess_mutex &mutex);

GdalWarper::Heightcoded::pointer getHeightcoded(Lock &lock);

[[maybe_unused]]
GdalWarper::Heightcoded::pointer getHeightcoded(bi::interprocess_mutex &mutex);

WorkRequest::Response consumeWork(Lock &lock);
Expand Down
1 change: 1 addition & 0 deletions mapproxy/src/mapproxy/generator/tms-raster-synthetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ namespace MetaFlags {

namespace {

[[maybe_unused]]
void meta2d(const vts::TileIndex &tileIndex, const vts::TileId &tileId
, const TmsFileInfo &fi, Sink &sink)
{
Expand Down
1 change: 1 addition & 0 deletions mapproxy/src/mapproxy/support/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ std::pair<double, double> meshArea(const geometry::Mesh &mesh)
return res;
}

[[maybe_unused]]
double meshArea(const geometry::Mesh &mesh, const math::Points3d &alt)
{
double area(0.0);
Expand Down

0 comments on commit fdd0f13

Please sign in to comment.