Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Miosix Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Miosix Kernel
Commits
68aea2b5
Commit
68aea2b5
authored
1 year ago
by
Alberto Nidasio
Committed by
Alberto Nidasio
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Added missing `#pragma GCC diagnostic push` in intrusive.h
parent
1b78ecd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
miosix/kernel/intrusive.h
+1
-0
1 addition, 0 deletions
miosix/kernel/intrusive.h
with
1 addition
and
0 deletions
miosix/kernel/intrusive.h
+
1
−
0
View file @
68aea2b5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment