Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ce/async api #2

Open
wants to merge 8 commits into
base: async_api
Choose a base branch
from
Open

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 <[email protected]>
warning: type qualifiers ignored on cast result type
[-Wignored-qualifiers]

Signed-off-by: Christian Eggers <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
warning: ISO C++ forbids variable length array ‘fdbuf’ [-Wvla]

Signed-off-by: Christian Eggers <[email protected]>
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 <[email protected]>
Required if dbus-asio is included via add_subdirectory()

Signed-off-by: Christian Eggers <[email protected]>
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