From de5965abe2ee5b6bd55c639ad8c79f0b7670ceba Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 5 Sep 2023 23:31:22 +0200 Subject: [PATCH] port_def: Add ignore for -Wextra-semi with Clang Ignores warning: extra ';' inside a struct [-Wextra-semi] in generated proto files. Amends #13492 --- src/google/protobuf/port_def.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc index 42fd229960d54..1050aa3befccd 100644 --- a/src/google/protobuf/port_def.inc +++ b/src/google/protobuf/port_def.inc @@ -1082,6 +1082,7 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3), // for (int i = 0; i < file_->public_dependency_count(); ++i) // for (int i = 0; i < public_dep->message_type_count(); ++i) #pragma clang diagnostic ignored "-Wshadow" +#pragma clang diagnostic ignored "-Wextra-semi" #endif #ifdef __GNUC__ #pragma GCC diagnostic push