From 3eb7b5e53fe6f1085de8ab37af9bfb841c478e4c Mon Sep 17 00:00:00 2001 From: owent Date: Thu, 23 Mar 2023 21:00:26 +0800 Subject: [PATCH] Fix clang diagnostic versions. Signed-off-by: owent --- .../exporters/otlp/protobuf_include_prefix.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/exporters/otlp/include/opentelemetry/exporters/otlp/protobuf_include_prefix.h b/exporters/otlp/include/opentelemetry/exporters/otlp/protobuf_include_prefix.h index 5431a5bdf7..dc674ce9eb 100644 --- a/exporters/otlp/include/opentelemetry/exporters/otlp/protobuf_include_prefix.h +++ b/exporters/otlp/include/opentelemetry/exporters/otlp/protobuf_include_prefix.h @@ -54,11 +54,13 @@ # pragma clang diagnostic ignored "-Wshadow" # pragma clang diagnostic ignored "-Wuninitialized" # pragma clang diagnostic ignored "-Wconversion" -# if !(((__clang_major__ * 100) + __clang_minor__) >= 305) -# pragma clang diagnostic ignored "-Wsuggest-override" +# if ((__clang_major__ * 100) + __clang_minor__) >= 305 +# pragma clang diagnostic ignored "-Wfloat-conversion" +# endif +# if ((__clang_major__ * 100) + __clang_minor__) >= 306 # pragma clang diagnostic ignored "-Winconsistent-missing-override" # endif -# if !(((__clang_major__ * 100) + __clang_minor__) >= 309) -# pragma clang diagnostic ignored "-Wfloat-conversion" +# if ((__clang_major__ * 100) + __clang_minor__) >= 1100 +# pragma clang diagnostic ignored "-Wsuggest-override" # endif #endif