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
8f025383
Commit
8f025383
authored
Apr 13, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -pedantic warnings on GCC
parent
11ff1257
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
38 deletions
+43
-38
examples/curl/curl_fuse.cpp
examples/curl/curl_fuse.cpp
+5
-5
examples/dynamic_behavior/dining_philosophers.cpp
examples/dynamic_behavior/dining_philosophers.cpp
+4
-4
examples/message_passing/fan_out_request.cpp
examples/message_passing/fan_out_request.cpp
+3
-3
examples/message_passing/fixed_stack.cpp
examples/message_passing/fixed_stack.cpp
+2
-2
examples/remoting/group_chat.cpp
examples/remoting/group_chat.cpp
+1
-1
libcaf_core/caf/detail/message_data.hpp
libcaf_core/caf/detail/message_data.hpp
+6
-1
libcaf_core/caf/type_id.hpp
libcaf_core/caf/type_id.hpp
+1
-1
libcaf_io/caf/io/fwd.hpp
libcaf_io/caf/io/fwd.hpp
+19
-19
tools/caf-vec.cpp
tools/caf-vec.cpp
+2
-2
No files found.
examples/curl/curl_fuse.cpp
View file @
8f025383
...
@@ -60,11 +60,11 @@ CAF_BEGIN_TYPE_ID_BLOCK(curl_fuse, first_custom_type_id)
...
@@ -60,11 +60,11 @@ CAF_BEGIN_TYPE_ID_BLOCK(curl_fuse, first_custom_type_id)
CAF_ADD_TYPE_ID
(
curl_fuse
,
(
std
::
vector
<
char
>
)
)
CAF_ADD_TYPE_ID
(
curl_fuse
,
(
std
::
vector
<
char
>
)
)
CAF_ADD_ATOM
(
curl_fuse
,
read_atom
)
;
CAF_ADD_ATOM
(
curl_fuse
,
read_atom
)
CAF_ADD_ATOM
(
curl_fuse
,
fail_atom
)
;
CAF_ADD_ATOM
(
curl_fuse
,
fail_atom
)
CAF_ADD_ATOM
(
curl_fuse
,
next_atom
)
;
CAF_ADD_ATOM
(
curl_fuse
,
next_atom
)
CAF_ADD_ATOM
(
curl_fuse
,
reply_atom
)
;
CAF_ADD_ATOM
(
curl_fuse
,
reply_atom
)
CAF_ADD_ATOM
(
curl_fuse
,
finished_atom
)
;
CAF_ADD_ATOM
(
curl_fuse
,
finished_atom
)
CAF_END_TYPE_ID_BLOCK
(
curl_fuse
)
CAF_END_TYPE_ID_BLOCK
(
curl_fuse
)
...
...
examples/dynamic_behavior/dining_philosophers.cpp
View file @
8f025383
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
CAF_BEGIN_TYPE_ID_BLOCK
(
dining_philosophers
,
first_custom_type_id
)
CAF_BEGIN_TYPE_ID_BLOCK
(
dining_philosophers
,
first_custom_type_id
)
CAF_ADD_ATOM
(
dining_philosophers
,
take_atom
)
;
CAF_ADD_ATOM
(
dining_philosophers
,
take_atom
)
CAF_ADD_ATOM
(
dining_philosophers
,
taken_atom
)
;
CAF_ADD_ATOM
(
dining_philosophers
,
taken_atom
)
CAF_ADD_ATOM
(
dining_philosophers
,
eat_atom
)
;
CAF_ADD_ATOM
(
dining_philosophers
,
eat_atom
)
CAF_ADD_ATOM
(
dining_philosophers
,
think_atom
)
;
CAF_ADD_ATOM
(
dining_philosophers
,
think_atom
)
CAF_END_TYPE_ID_BLOCK
(
dining_philosophers
)
CAF_END_TYPE_ID_BLOCK
(
dining_philosophers
)
...
...
examples/message_passing/fan_out_request.cpp
View file @
8f025383
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
CAF_BEGIN_TYPE_ID_BLOCK
(
fan_out_request
,
first_custom_type_id
)
CAF_BEGIN_TYPE_ID_BLOCK
(
fan_out_request
,
first_custom_type_id
)
CAF_ADD_ATOM
(
fan_out_request
,
row_atom
)
;
CAF_ADD_ATOM
(
fan_out_request
,
row_atom
)
CAF_ADD_ATOM
(
fan_out_request
,
column_atom
)
;
CAF_ADD_ATOM
(
fan_out_request
,
column_atom
)
CAF_ADD_ATOM
(
fan_out_request
,
average_atom
)
;
CAF_ADD_ATOM
(
fan_out_request
,
average_atom
)
CAF_END_TYPE_ID_BLOCK
(
fan_out_request
)
CAF_END_TYPE_ID_BLOCK
(
fan_out_request
)
...
...
examples/message_passing/fixed_stack.cpp
View file @
8f025383
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
CAF_BEGIN_TYPE_ID_BLOCK
(
fixed_stack
,
first_custom_type_id
)
CAF_BEGIN_TYPE_ID_BLOCK
(
fixed_stack
,
first_custom_type_id
)
CAF_ADD_ATOM
(
fixed_stack
,
pop_atom
)
;
CAF_ADD_ATOM
(
fixed_stack
,
pop_atom
)
CAF_ADD_ATOM
(
fixed_stack
,
push_atom
)
;
CAF_ADD_ATOM
(
fixed_stack
,
push_atom
)
CAF_END_TYPE_ID_BLOCK
(
fixed_stack
)
CAF_END_TYPE_ID_BLOCK
(
fixed_stack
)
...
...
examples/remoting/group_chat.cpp
View file @
8f025383
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
CAF_BEGIN_TYPE_ID_BLOCK
(
group_chat
,
first_custom_type_id
)
CAF_BEGIN_TYPE_ID_BLOCK
(
group_chat
,
first_custom_type_id
)
CAF_ADD_ATOM
(
group_chat
,
broadcast_atom
)
;
CAF_ADD_ATOM
(
group_chat
,
broadcast_atom
)
CAF_END_TYPE_ID_BLOCK
(
group_chat
)
CAF_END_TYPE_ID_BLOCK
(
group_chat
)
...
...
libcaf_core/caf/detail/message_data.hpp
View file @
8f025383
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
#ifdef CAF_CLANG
#ifdef CAF_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc99-extensions"
# pragma clang diagnostic ignored "-Wc99-extensions"
#elif defined(CAF_GCC)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wpedantic"
#elif defined(CAF_MSVC)
#elif defined(CAF_MSVC)
# pragma warning(push)
# pragma warning(push)
# pragma warning(disable : 4200)
# pragma warning(disable : 4200)
...
@@ -155,6 +158,8 @@ void message_data_init(byte* storage, T&& x, Ts&&... xs) {
...
@@ -155,6 +158,8 @@ void message_data_init(byte* storage, T&& x, Ts&&... xs) {
#ifdef CAF_CLANG
#ifdef CAF_CLANG
# pragma clang diagnostic pop
# pragma clang diagnostic pop
#elif defined(MSVC)
#elif defined(CAF_GCC)
# pragma GCC diagnostic pop
#elif defined(CAF_MSVC)
# pragma warning(pop)
# pragma warning(pop)
#endif
#endif
libcaf_core/caf/type_id.hpp
View file @
8f025383
...
@@ -263,7 +263,7 @@ CAF_BEGIN_TYPE_ID_BLOCK(core_module, 0)
...
@@ -263,7 +263,7 @@ CAF_BEGIN_TYPE_ID_BLOCK(core_module, 0)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
caf
::
config_value
>
)
)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
caf
::
config_value
>
)
)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
caf
::
strong_actor_ptr
>
)
)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
caf
::
strong_actor_ptr
>
)
)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
caf
::
weak_actor_ptr
>
)
)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
caf
::
weak_actor_ptr
>
)
)
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
std
::
pair
<
std
::
string
,
message
>>
)
)
;
CAF_ADD_TYPE_ID
(
core_module
,
(
std
::
vector
<
std
::
pair
<
std
::
string
,
message
>>
)
)
// -- predefined atoms
// -- predefined atoms
...
...
libcaf_io/caf/io/fwd.hpp
View file @
8f025383
...
@@ -93,25 +93,25 @@ using address_listing = std::map<protocol::network, std::vector<std::string>>;
...
@@ -93,25 +93,25 @@ using address_listing = std::map<protocol::network, std::vector<std::string>>;
CAF_BEGIN_TYPE_ID_BLOCK
(
io_module
,
detail
::
io_module_begin
)
CAF_BEGIN_TYPE_ID_BLOCK
(
io_module
,
detail
::
io_module_begin
)
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
accept_handle
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
accept_handle
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
acceptor_closed_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
acceptor_closed_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
acceptor_passivated_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
acceptor_passivated_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
connection_closed_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
connection_closed_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
connection_handle
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
connection_handle
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
connection_passivated_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
connection_passivated_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
data_transferred_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
data_transferred_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_sent_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_sent_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_servant_closed_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_servant_closed_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_servant_passivated_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_servant_passivated_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_servant_ptr
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
datagram_servant_ptr
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
doorman_ptr
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
doorman_ptr
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
network
::
address_listing
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
network
::
address_listing
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
network
::
protocol
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
network
::
protocol
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
network
::
receive_buffer
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
network
::
receive_buffer
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
new_connection_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
new_connection_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
new_data_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
new_data_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
new_datagram_msg
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
new_datagram_msg
))
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
scribe_ptr
))
;
CAF_ADD_TYPE_ID
(
io_module
,
(
caf
::
io
::
scribe_ptr
))
CAF_END_TYPE_ID_BLOCK
(
io_module
)
CAF_END_TYPE_ID_BLOCK
(
io_module
)
...
...
tools/caf-vec.cpp
View file @
8f025383
...
@@ -13,8 +13,8 @@ struct se_event;
...
@@ -13,8 +13,8 @@ struct se_event;
CAF_BEGIN_TYPE_ID_BLOCK
(
caf_vec
,
first_custom_type_id
)
CAF_BEGIN_TYPE_ID_BLOCK
(
caf_vec
,
first_custom_type_id
)
CAF_ADD_TYPE_ID
(
caf_vec
,
(
entity
))
;
CAF_ADD_TYPE_ID
(
caf_vec
,
(
entity
))
CAF_ADD_TYPE_ID
(
caf_vec
,
(
se_event
))
;
CAF_ADD_TYPE_ID
(
caf_vec
,
(
se_event
))
CAF_END_TYPE_ID_BLOCK
(
caf_vec
)
CAF_END_TYPE_ID_BLOCK
(
caf_vec
)
...
...
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