From 5b3f46f5b14a7344ac0ad68b5193ac97e5cb7746 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Thu, 1 Feb 2018 13:03:47 +0000 Subject: [PATCH] Ignore unused-variable warnings cause by V8 header This can be removed after https://github.com/cjntaylor/node-cmake/pull/37 is merged and released. --- include/nodejs/json_v8_renderer.hpp | 3 +++ include/nodejs/node_osrm.hpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/nodejs/json_v8_renderer.hpp b/include/nodejs/json_v8_renderer.hpp index bfe7b4060f4..ab7c89e4235 100644 --- a/include/nodejs/json_v8_renderer.hpp +++ b/include/nodejs/json_v8_renderer.hpp @@ -3,7 +3,10 @@ #include "osrm/json_container.hpp" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" #include +#pragma GCC diagnostic pop #include diff --git a/include/nodejs/node_osrm.hpp b/include/nodejs/node_osrm.hpp index c82a5423533..2b11043f7ec 100644 --- a/include/nodejs/node_osrm.hpp +++ b/include/nodejs/node_osrm.hpp @@ -3,7 +3,10 @@ #include "osrm/osrm_fwd.hpp" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" #include +#pragma GCC diagnostic pop #include