Skip to content

Commit

Permalink
port_def: Ignore -Wpedantic warnings (#13492)
Browse files Browse the repository at this point in the history
Fixes `extra ';' [-Wpedantic]` warnings in generated `.pb` headers.

Closes #13492

COPYBARA_INTEGRATE_REVIEW=#13492 from jonaski:pedantic_extra_semicolon a226328
PiperOrigin-RevId: 557217716
  • Loading branch information
jonaski authored and copybara-github committed Aug 15, 2023
1 parent 055c378 commit f57b3ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/port_def.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f57b3ee

Please sign in to comment.