port_def: Ignore `-Wpedantic` warnings

Fixes `extra ';' [-Wpedantic]` warnings in generated `.pb` headers.
pull/13492/head
Jonas Kvinge 2 years ago
parent 783f555ad1
commit a226328af6
  1. 2
      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

Loading…
Cancel
Save