Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
7c435896
Commit
7c435896
authored
Dec 06, 2013
by
Adam Cavendish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solve issue #103: Does not build on Linux <2.6.17, issue #108: unused_result warning on g++-4.8.1
parent
3f781282
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
cppa/config.hpp
cppa/config.hpp
+5
-0
src/middleman.cpp
src/middleman.cpp
+2
-1
No files found.
cppa/config.hpp
View file @
7c435896
...
@@ -93,6 +93,11 @@
...
@@ -93,6 +93,11 @@
#ifdef CPPA_WINDOWS
#ifdef CPPA_WINDOWS
#else
#else
# include <unistd.h>
# include <unistd.h>
# include <linux/version.h>
# if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,16)
# define CPPA_POLL_IMPL
# endif // LINUX_VERSION
#endif
#endif
namespace
cppa
{
namespace
cppa
{
...
...
src/middleman.cpp
View file @
7c435896
...
@@ -108,7 +108,8 @@ class middleman_impl {
...
@@ -108,7 +108,8 @@ class middleman_impl {
atomic_thread_fence
(
memory_order_seq_cst
);
atomic_thread_fence
(
memory_order_seq_cst
);
uint8_t
dummy
=
0
;
uint8_t
dummy
=
0
;
// ignore result; write error only means middleman already exited
// ignore result; write error only means middleman already exited
static_cast
<
void
>
(
write
(
m_pipe_write
,
&
dummy
,
sizeof
(
dummy
)));
auto
unused_ret
=
write
(
m_pipe_write
,
&
dummy
,
sizeof
(
dummy
));
static_cast
<
void
>
(
unused_ret
);
}
}
void
continue_writer
(
continuable
*
ptr
)
{
void
continue_writer
(
continuable
*
ptr
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment