Skip to content

Commit

Permalink
Drop ; after #pragma.
Browse files Browse the repository at this point in the history
(cherry picked from commit 98030ad)
  • Loading branch information
bbannier committed Apr 4, 2024
1 parent e04850b commit 7c73cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hilti/runtime/include/intrusive-ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ class IntrusivePtr {
pointer get() const noexcept {
// Some versions of GCC diagnose a maybe uninitialized variable here.
// Since we always initialize the field this should not be possible.
#pragma GCC diagnostic push;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
return ptr_;
#pragma GCC diagnostic pop;
#pragma GCC diagnostic pop
}

pointer operator->() const noexcept { return ptr_; }
Expand Down

0 comments on commit 7c73cab

Please sign in to comment.