port_def: Ignore -Wpedantic warnings (#13492)

Fixes `extra ';' [-Wpedantic]` warnings in generated `.pb` headers.

Closes #13492

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13492 from jonaski:pedantic_extra_semicolon a226328af6
PiperOrigin-RevId: 557217716
pull/13553/head
Jonas Kvinge 1 year ago committed by Copybara-Service
parent 055c3782f6
commit f57b3eeb27
  1. 2
      src/google/protobuf/port_def.inc

@ -1091,6 +1091,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

Loading…
Cancel
Save