Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
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
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Commits
dd6d96b7
Commit
dd6d96b7
authored
3 years ago
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
ignore maybe-uninitialized in LinkFutureTest needed by gcc 11.1.0
parent
964233cb
No related branches found
Branches containing commit
No related tags found
1 merge request
!202
GCC 11.1 fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
emper/Debug.hpp
+9
-0
9 additions, 0 deletions
emper/Debug.hpp
tests/io/LinkFutureTest.cpp
+6
-0
6 additions, 0 deletions
tests/io/LinkFutureTest.cpp
with
15 additions
and
0 deletions
emper/Debug.hpp
+
9
−
0
View file @
dd6d96b7
...
@@ -57,6 +57,15 @@
...
@@ -57,6 +57,15 @@
#define IGNORE_UNUSED_FUNCTION \
#define IGNORE_UNUSED_FUNCTION \
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
// test for GCC > 11.1.0
#if __GNUC__ > 11 || \
(__GNUC__ == 11 && (__GNUC_MINOR__ > 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ > 0)))
#define IGNORE_MAYBE_UNINITIALIZED \
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
#else
#define IGNORE_MAYBE_UNINITIALIZED _Pragma("GCC diagnostic push")
#endif
#define POP_DIAGNOSTIC _Pragma("GCC diagnostic pop")
#define POP_DIAGNOSTIC _Pragma("GCC diagnostic pop")
enum
class
LogSubsystem
{
enum
class
LogSubsystem
{
...
...
This diff is collapsed.
Click to expand it.
tests/io/LinkFutureTest.cpp
+
6
−
0
View file @
dd6d96b7
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include
<cstdint>
// for uint64_t, int32_t
#include
<cstdint>
// for uint64_t, int32_t
#include
"Common.hpp"
// for DIE_MSG_ERRNO, DIE_MSG
#include
"Common.hpp"
// for DIE_MSG_ERRNO, DIE_MSG
#include
"Debug.hpp"
#include
"io.hpp"
#include
"io.hpp"
#include
"io/Future.hpp"
// for ReadFuture, CloseFuture, WriteFuture
#include
"io/Future.hpp"
// for ReadFuture, CloseFuture, WriteFuture
...
@@ -79,7 +80,12 @@ static void successLoop() {
...
@@ -79,7 +80,12 @@ static void successLoop() {
static
void
failureChainInvCor
()
{
static
void
failureChainInvCor
()
{
std
::
array
<
char
,
32
>
buf
;
std
::
array
<
char
,
32
>
buf
;
// GCC 11.1.0 reports that buf is not initialized.
// Which is totally fine because we read into it.
IGNORE_MAYBE_UNINITIALIZED
ReadFuture
invalidReadFuture
(
-
1
,
buf
.
data
(),
buf
.
size
(),
0
);
ReadFuture
invalidReadFuture
(
-
1
,
buf
.
data
(),
buf
.
size
(),
0
);
POP_DIAGNOSTIC
ReadFuture
readFuture
(
0
,
buf
.
data
(),
buf
.
size
(),
0
);
ReadFuture
readFuture
(
0
,
buf
.
data
(),
buf
.
size
(),
0
);
readFuture
.
setDependency
(
invalidReadFuture
);
readFuture
.
setDependency
(
invalidReadFuture
);
...
...
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