Skip to content

Commit 24f12c9

Browse files
author
Denis Chapligin
authored
Merge pull request #5732 from lukasz-jagielski-bolt/lkj/compile_with_node_12
Try to fix node 12 compilation issues
2 parents bdf2222 + 9861faa commit 24f12c9

File tree

4 files changed

+97
-92
lines changed

4 files changed

+97
-92
lines changed

include/nodejs/node_osrm.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ struct Engine final : public Nan::ObjectWrap
3737
std::shared_ptr<osrm::OSRM> this_;
3838
};
3939

40-
} // ns node_osrm
40+
} // namespace node_osrm
4141

42-
NODE_MODULE(osrm, node_osrm::Engine::Init)
42+
#pragma GCC diagnostic push
43+
#pragma GCC diagnostic ignored "-Wunused-parameter"
44+
NAN_MODULE_WORKER_ENABLED(osrm, node_osrm::Engine::Init)
45+
#pragma GCC diagnostic pop
4346

4447
#endif

0 commit comments

Comments
 (0)