Closed k-ai0 closed 1 year ago
There were a few pragma warnings; but doubtful they were significant. Please advise if there is cause for concern.
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/rapidjson.h:542:29: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
542 | #define RAPIDJSON_PRAGMA(x) _Pragma(RAPIDJSON_STRINGIFY(x))
| ^~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/rapidjson.h:543:34: note: in expansion of macro ‘RAPIDJSON_PRAGMA’
543 | #define RAPIDJSON_DIAG_PRAGMA(x) RAPIDJSON_PRAGMA(GCC diagnostic x)
| ^~~~~~~~~~~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/rapidjson.h:545:3: note: in expansion of macro ‘RAPIDJSON_DIAG_PRAGMA’
545 | RAPIDJSON_DIAG_PRAGMA(ignored RAPIDJSON_STRINGIFY(RAPIDJSON_JOIN(-W, x)))
| ^~~~~~~~~~~~~~~~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/internal/dtoa.h:36:1: note: in expansion of macro ‘RAPIDJSON_DIAG_OFF’
36 | RAPIDJSON_DIAG_OFF(array - bounds) // some gcc versions generate wrong warnings
| ^~~~~~~~~~~~~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/rapidjson.h:542:29: note: did you mean ‘-Warray-bounds’?
542 | #define RAPIDJSON_PRAGMA(x) _Pragma(RAPIDJSON_STRINGIFY(x))
| ^~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/rapidjson.h:543:34: note: in expansion of macro ‘RAPIDJSON_PRAGMA’
543 | #define RAPIDJSON_DIAG_PRAGMA(x) RAPIDJSON_PRAGMA(GCC diagnostic x)
| ^~~~~~~~~~~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/rapidjson.h:545:3: note: in expansion of macro ‘RAPIDJSON_DIAG_PRAGMA’
545 | RAPIDJSON_DIAG_PRAGMA(ignored RAPIDJSON_STRINGIFY(RAPIDJSON_JOIN(-W, x)))
| ^~~~~~~~~~~~~~~~~~~~~
/home/[redacted]/opt/Livox-SDK2/sdk_core/../3rdparty/rapidjson/internal/dtoa.h:36:1: note: in expansion of macro ‘RAPIDJSON_DIAG_OFF’
36 | RAPIDJSON_DIAG_OFF(array - bounds) // some gcc versions generate wrong warnings
Hi, I had some issues compiling this library on arch linux. I modified the following files and compiles perfectly fine.
and also the logger handler