Commit adcc33e0 authored by Georg Sauthoff's avatar Georg Sauthoff Committed by Kirk Shoop
Browse files

Fix doc target missing declarations errors

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.
parent a7d58563
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment