From a226328af677de44cab3fe7d71f70d091af4061a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 9 Aug 2023 22:18:15 +0200 Subject: [PATCH] port_def: Ignore `-Wpedantic` warnings Fixes `extra ';' [-Wpedantic]` warnings in generated `.pb` headers. --- src/google/protobuf/port_def.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc index be117423b6..a1ad7300a7 100644 --- a/src/google/protobuf/port_def.inc +++ b/src/google/protobuf/port_def.inc @@ -1087,6 +1087,8 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3), #pragma GCC diagnostic ignored "-Wstringop-overflow" // This causes spurious warnings in GCC 13. #pragma GCC diagnostic ignored "-Wself-move" +// Ignore warning: extra ';' [-Wpedantic] +#pragma GCC diagnostic ignored "-Wpedantic" #endif #if __GNUC__ == 12 && __GNUC_MINOR__ < 4 // Wrong warning emitted when assigning a single char c-string to a std::string