Files
buildroot/package
Thomas De Schampheleire 30c6b17b4a package/opentracing-cpp: fix build if clang-tidy is installed on the host
opentracing-cpp fails to build if clang-tidy is installed:

...
-- clang-tidy found: /usr/lib/llvm/11/bin/clang-tidy
-- Configuring done
-- Generating done
...

[ 25%] Building CXX object CMakeFiles/opentracing.dir/src/propagation.cpp.o
.../buildroot/output/build/opentracing-cpp-1.5.1/include/opentracing/string_view.h:5:10: error: 'algorithm' file not found [clang-diagnostic-error]
         ^
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:3:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace]
namespace opentracing {
          ^
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:11:3: warning: use '= default' to define a trivial default constructor [hicpp-use-equals-default,modernize-use-equals-default]
  PropagationErrorCategory() {}
  ^                          ~~
                             = default;
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:13:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
  const char* name() const noexcept override {
  ~~~~~~~~~~~ ^
  auto                              -> const char*
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:13:15: warning: method 'name' can be made static [readability-convert-member-functions-to-static]
  const char* name() const noexcept override {
              ^      ~~~~~~
  static
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:17:24: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
  std::error_condition default_error_condition(int code) const
                       ^
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:37:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
  std::string message(int code) const override {
              ^
.../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:58:28: warning: use a trailing return type for this function [modernize-use-trailing-return-type]
const std::error_category& propagation_error_category() {
                           ^
226 warnings and 1 error generated.
Error while processing .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp.
Suppressed 218 warnings (218 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
Found compiler error(s).
make[3]: *** [CMakeFiles/opentracing.dir/build.make:83: CMakeFiles/opentracing.dir/src/propagation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
.../buildroot/output/build/opentracing-cpp-1.5.1/include/opentracing/string_view.h:5:10: error: 'algorithm' file not found [clang-diagnostic-error]
         ^
.../buildroot/output/build/opentracing-cpp-1.5.1/src/dynamic_load.cpp:4:

Disable the 'ENABLE_LINTING' option to avoid this influence.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit aede6dd7b6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-01-28 21:04:46 +01:00
..
2020-09-14 22:16:23 +02:00
2020-08-15 16:14:28 +02:00
2020-09-30 22:56:40 +02:00
2020-10-06 21:05:07 +02:00
2020-11-29 22:15:42 +01:00
2020-11-18 10:48:11 +01:00
2020-09-02 18:14:46 +02:00
2020-09-22 21:41:06 +02:00
2020-08-13 21:59:36 +02:00
2020-10-13 13:23:33 +02:00
2020-11-09 11:00:11 +01:00
2020-09-01 09:18:37 +02:00
2020-11-26 17:10:02 +01:00
2020-10-04 11:38:01 +02:00
2020-09-09 22:54:26 +02:00
2020-10-31 22:22:28 +01:00
2020-11-12 21:53:32 +01:00
2020-11-09 17:01:30 +01:00
2020-11-04 20:34:48 +01:00
2020-11-01 10:03:36 +01:00
2020-09-17 21:40:39 +02:00
2020-11-01 10:03:36 +01:00
2020-08-19 22:47:44 +02:00
2020-10-12 08:33:42 +02:00
2020-08-29 23:05:20 +02:00
2020-09-21 22:37:31 +02:00
2020-08-29 21:58:02 +02:00
2020-11-03 23:16:48 +01:00
2020-10-15 23:36:40 +02:00
2020-09-20 16:08:09 +02:00
2020-09-07 23:15:11 +02:00
2020-09-08 22:31:51 +02:00
2020-11-07 13:21:15 +01:00
2020-11-29 22:21:37 +01:00
2020-08-29 22:57:17 +02:00
2020-12-01 23:01:27 +01:00
2020-11-10 08:29:37 +01:00
2020-10-25 15:52:40 +01:00
2020-09-19 21:10:27 +02:00
2020-10-31 23:44:06 +01:00
2020-08-16 22:21:11 +02:00
2020-10-04 20:45:35 +02:00
2020-12-13 00:54:16 +01:00
2020-08-28 22:56:49 +02:00
2020-10-31 23:01:00 +01:00
2020-11-07 14:19:01 +01:00
2020-09-19 21:18:26 +02:00
2020-09-05 23:30:10 +02:00
2020-10-18 13:28:37 +02:00
2020-11-22 15:26:49 +01:00
2021-01-28 20:24:04 +01:00
2020-09-20 15:36:47 +02:00
2020-10-04 21:53:43 +02:00
2020-10-24 22:58:03 +02:00
2020-08-26 23:23:44 +02:00
2020-08-29 23:13:51 +02:00
2020-09-19 14:52:33 +02:00
2020-08-27 23:04:17 +02:00
2020-09-03 20:51:04 +02:00
2020-11-16 21:29:58 +01:00
2020-09-19 14:22:00 +02:00
2020-08-28 22:56:49 +02:00
2020-09-19 22:08:37 +02:00
2020-08-23 15:03:18 +02:00
2020-10-31 21:42:38 +01:00
2020-11-03 20:55:04 +01:00
2020-10-27 10:25:41 +01:00
2020-10-06 21:04:37 +02:00
2020-08-31 22:18:09 +02:00
2020-10-15 00:09:48 +02:00
2020-09-22 21:59:02 +02:00
2020-10-13 13:33:33 +02:00
2020-10-04 11:38:01 +02:00
2020-11-22 15:31:36 +01:00
2020-08-16 22:13:54 +02:00
2021-01-28 18:23:43 +01:00
2021-01-05 22:52:08 +01:00
2020-10-12 22:30:09 +02:00
2020-08-28 22:56:49 +02:00
2020-10-04 11:38:01 +02:00
2020-08-16 11:27:28 +02:00
2020-09-20 15:05:59 +02:00
2021-01-28 18:00:46 +01:00
2020-10-29 23:26:21 +01:00
2021-01-28 20:24:04 +01:00
2020-11-12 21:55:11 +01:00
2020-12-12 12:02:27 +01:00
2020-09-19 23:22:59 +02:00
2021-01-12 18:25:27 +01:00
2020-09-20 15:06:00 +02:00
2020-11-01 10:03:36 +01:00
2021-01-28 20:24:04 +01:00
2021-01-19 15:55:42 +01:00