Fix more OSS warnings and build errors

-Wc++98-compat-extra-semi
* in type_map.h

-Winconsistent-missing-override
* in gl_texture_buffer.h

-Wdeprecated-declarations
* usage of (absl) Status in
  * status_util.cc
  * api2/packet.h
  * output_stream_shard.cc

-Wimplicit-const-int-float-conversion
* Adds a static_cast to handle the precision loss when converting from large ints to floating point

ANNOTATE_THREAD_NAME
* explicitly uses ABSL_ANNOTATE_THREAD_NAME instead. This is useful in Chromium's build where there are multiple ANNOTATE_THREAD_NAME symbols

Also ran clang-format over all of each edited file

PiperOrigin-RevId: 537351290
This commit is contained in:
MediaPipe Team
2023-06-02 10:46:42 -07:00
committed by Copybara-Service
parent 9045a74ba3
commit 280bd320b4
7 changed files with 28 additions and 25 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ absl::Status CombinedStatus(absl::string_view general_comment,
}
}
}
if (error_code == StatusCode::kOk) return OkStatus();
Status combined;
if (error_code == absl::StatusCode::kOk) return absl::OkStatus();
absl::Status combined;
combined = absl::Status(
error_code,
absl::StrCat(general_comment, "\n", absl::StrJoin(errors, "\n")));