Skip to content

Comments

Ce/async api#2

Open
ceggers-arri wants to merge 8 commits intod12fk:async_apifrom
ceggers-arri:ce/async_api
Open

Ce/async api#2
ceggers-arri wants to merge 8 commits intod12fk:async_apifrom
ceggers-arri:ce/async_api

Conversation

@ceggers-arri
Copy link

Hi Heiko,

here are some trivial fixes for your async_api branch. Feel free to modify them,
cherry-pick individual commits or even fixup your own commits.

It is unlikely that I will find time for further improvements as I have to migrate
away to GDBus due to licensing issues.

regards
Christian

These methods use sendMethodCall() which in turn is non-const.

Signed-off-by: Christian Eggers <ceggers@arri.de>
warning: type qualifiers ignored on cast result type
[-Wignored-qualifiers]

Signed-off-by: Christian Eggers <ceggers@arri.de>
warning: cast from type ‘const uint8_t*’ {aka ‘const unsigned char*’} to
type ‘uint32_t*’ {aka ‘unsigned int*’} casts away qualifiers
[-Wcast-qual]

Signed-off-by: Christian Eggers <ceggers@arri.de>
warning: comparison of integer expressions of different signedness:
‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘unsigned
int’} [-Wsign-compare]

Signed-off-by: Christian Eggers <ceggers@arri.de>
warning: cast from type ‘const uint32_t*’ {aka ‘const unsigned int*’} to
type ‘char*’ casts away qualifiers [-Wcast-qual]

Use C++ style cast.

Signed-off-by: Christian Eggers <ceggers@arri.de>
warning: ISO C++ forbids variable length array ‘fdbuf’ [-Wvla]

Signed-off-by: Christian Eggers <ceggers@arri.de>
I get the following compiler errors when I only include
dbus_connection.h:

error: ‘WellKnownName’ does not name a type
error: ‘MatchRule’ does not name a type
error: ‘MatchRule’ was not declared in this scope
error: template argument 1 is invalid
...
error: request for member ‘str’ in ‘rule’, which is of non-class type
‘const int’
...

Header files should be mostly self contained.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Required if dbus-asio is included via add_subdirectory()

Signed-off-by: Christian Eggers <ceggers@arri.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant