Skip to content

Fix doc target missing declarations errors#464

Merged
kirkshoop merged 1 commit intoReactiveX:masterfrom
gsauthof:doc-decls
Oct 20, 2018
Merged

Fix doc target missing declarations errors#464
kirkshoop merged 1 commit intoReactiveX:masterfrom
gsauthof:doc-decls

Conversation

@gsauthof
Copy link
Copy Markdown
Contributor

Building the docs (e.g. with ninja doc) failed with GCC (e.g. GCC 7.3
under Fedora 27) with some missing declaration errors.

Example:

../Rx/v2/examples/doxygen/main.cpp:7:13: error: no previous
declaration for ‘std::__cxx11::string get_pid()’
[-Werror=missing-declarations]

Thus, this change adds a shared declaration for get_pid() that is
included by all users/the file where it's defined such that
accidental deviation in the signature are immediately noticed (as
compile error).

Similarly, the visibility of the example less() is changed to static
as it's only locally used.

With those changes the doc target succeeds again.

Building the docs (e.g. with `ninja doc`) failed with GCC (e.g. GCC 7.3
under Fedora 27) with some missing declaration errors.

Example:

    ../Rx/v2/examples/doxygen/main.cpp:7:13: error: no previous
    declaration for ‘std::__cxx11::string get_pid()’
    [-Werror=missing-declarations]

Thus, this change adds a shared declaration for `get_pid()` that is
included by all users/the file where it's defined such that
accidental deviation in the signature are immediately noticed (as
compile error).

Similarly, the visibility of the example `less()` is changed to static
as it's only locally used.

With those changes the doc target succeeds again.
@kirkshoop kirkshoop merged commit adcc33e into ReactiveX:master Oct 20, 2018
@kirkshoop
Copy link
Copy Markdown
Member

Thanks!

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.

2 participants