Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Core Modules
dune-common
Commits
2e3e97bb
Commit
2e3e97bb
authored
2 years ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Disable bitwise operation warning in more files
parent
8dcff4a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1160
Disable warnings in clang properly
Pipeline
#52924
passed
2 years ago
Stage: .pre
Stage: test
Stage: downstream
Pipeline: Dune Nightly Test
#52926
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/common/debugalign.hh
+7
-0
7 additions, 0 deletions
dune/common/debugalign.hh
dune/common/simd/loop.hh
+3
-4
3 additions, 4 deletions
dune/common/simd/loop.hh
dune/common/test/arithmetictestsuite.hh
+18
-1
18 additions, 1 deletion
dune/common/test/arithmetictestsuite.hh
with
28 additions
and
5 deletions
dune/common/debugalign.hh
+
7
−
0
View file @
2e3e97bb
...
...
@@ -182,12 +182,19 @@ namespace Dune {
#if __GNUC__ >= 7
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wbool-operation"
#endif
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wbool-operation"
#endif
template
<
class
U
=
T
,
class
=
std
::
void_t
<
decltype
(
~
std
::
declval
<
const
U
&
>())
>
>
decltype
(
auto
)
operator
~
()
const
{
return
aligned
<
align
>
(
~
value_
);
}
#if __GNUC__ >= 7
# pragma GCC diagnostic pop
#endif
#ifdef __clang__
# pragma clang diagnostic pop
#endif
template
<
class
U
=
T
,
...
...
This diff is collapsed.
Click to expand it.
dune/common/simd/loop.hh
+
3
−
4
View file @
2e3e97bb
...
...
@@ -30,13 +30,12 @@ namespace Dune {
* a bool (when instantiated for T=bool)
*/
#ifdef __clang__
#if __has_warning("-Wbitwise-instead-of-logical")
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wbool-operation"
# if __has_warning("-Wbitwise-instead-of-logical")
# pragma clang diagnostic ignored "-Wbitwise-instead-of-logical"
# endif
# pragma clang diagnostic ignored "-Wbitwise-instead-of-logical"
# define CLANG_WARNING_DISABLED
#endif
#endif
/*
* Introduce a simd pragma if OpenMP is available in standard version >= 4
...
...
This diff is collapsed.
Click to expand it.
dune/common/test/arithmetictestsuite.hh
+
18
−
1
View file @
2e3e97bb
...
...
@@ -20,6 +20,17 @@ namespace Dune {
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wbool-operation"
# pragma GCC diagnostic ignored "-Wint-in-bool-context"
# define GCC_WARNING_DISABLED
#endif
/*
* silence warnings from Clang about using bitwise operands on
* a bool (when instantiated for T=bool)
*/
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wbool-operation"
# define CLANG_WARNING_DISABLED
#endif
//! Test suite for arithmetic types
...
...
@@ -791,8 +802,14 @@ namespace Dune {
}
};
#if __GNUC__ >= 7
#ifdef CLANG_WARNING_DISABLED
# pragma clang diagnostic pop
# undef CLANG_WARNING_DISABLED
#endif
#ifdef GCC_WARNING_DISABLED
# pragma GCC diagnostic pop
# undef GCC_WARNING_DISABLED
#endif
}
// namespace Dune
...
...
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