This commit is contained in:
Siarhei Fedartsou 2022-09-09 14:34:22 +02:00
parent e5550688fa
commit 99b90125d7
2 changed files with 8 additions and 9 deletions

View File

@ -17,8 +17,7 @@ add_nodejs_module(node_osrm node_osrm.cpp)
set_target_properties(node_osrm PROPERTIES CXX_STANDARD 14) set_target_properties(node_osrm PROPERTIES CXX_STANDARD 14)
# TODO: we disable clang-tidy for this target, because it causes errors in third-party NodeJs related headers # TODO: we disable clang-tidy for this target, because it causes errors in third-party NodeJs related headers
set_target_properties(node_osrm PROPERTIES CXX_CLANG_TIDY "") set_target_properties(node_osrm PROPERTIES CXX_CLANG_TIDY "")
# TODO: we turn off "warnings as errors" for this target, because it causes errors in third-party NodeJs related headers # TODO: we turn off some warnings for this target, because it causes errors in third-party NodeJs related headers
# target_no_warning(node_osrm error)
target_no_warning(node_osrm suggest-destructor-override) target_no_warning(node_osrm suggest-destructor-override)
target_no_warning(node_osrm suggest-override) target_no_warning(node_osrm suggest-override)

View File

@ -7,13 +7,13 @@
// This is needed because libstdc++ itself uses this API - its not // This is needed because libstdc++ itself uses this API - its not
// just an issue of your code using it, ughhh // just an issue of your code using it, ughhh
// // Note: only necessary on Linux // Note: only necessary on Linux
// #ifdef __linux__ #ifdef __linux__
// #define _ENABLE_GLIBC_WORKAROUND #define _ENABLE_GLIBC_WORKAROUND
// #warning building with workaround #warning building with workaround
// #else #else
// #warning not building with workaround #warning not building with workaround
// #endif #endif
#ifdef _ENABLE_GLIBC_WORKAROUND #ifdef _ENABLE_GLIBC_WORKAROUND
namespace std namespace std