Skip to content
Snippets Groups Projects
Commit 68aea2b5 authored by Alberto Nidasio's avatar Alberto Nidasio Committed by Alberto Nidasio
Browse files

Added missing `#pragma GCC diagnostic push` in intrusive.h

parent 1b78ecd1
No related branches found
No related tags found
No related merge requests found
...@@ -377,6 +377,7 @@ intrusive_ref_ptr<T> intrusive_ref_ptr<T>::atomic_load() const ...@@ -377,6 +377,7 @@ intrusive_ref_ptr<T> intrusive_ref_ptr<T>::atomic_load() const
// virtual base classes, but that's an acceptable limitation, especially // virtual base classes, but that's an acceptable limitation, especially
// considering that you get a meaningful compiler error if accidentally // considering that you get a meaningful compiler error if accidentally
// trying to use it in such a case. // trying to use it in such a case.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Winvalid-offsetof" #pragma GCC diagnostic ignored "-Winvalid-offsetof"
const int offsetBytes=offsetof(T,intrusive.referenceCount); const int offsetBytes=offsetof(T,intrusive.referenceCount);
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment