Skip to content

Conversation

wferi
Copy link

@wferi wferi commented Apr 3, 2023

The type of MHD_YES/NO changed in libmicrohttpd 0.9.70, so flexibility is needed for some time to avoid "incompatible pointer type" warning, which breaks the default build where warnings are treated as errors.

Furthermore the public declaration of promhttp_handler() is useful when the promhttpd_start_daemon() helper is not flexible enough and thus the library user has to invoke MHD_start_daemon() directly.

Fixes #72.

The type of MHD_YES/NO changed in libmicrohttpd 0.9.70, so flexibility
is needed for some time to avoid "incompatible pointer type" warning,
which breaks the default build where warnings are treated as errors.

Furthermore the public declaration of promhttp_handler() is useful
when the promhttpd_start_daemon() helper is not flexible enough and
thus the library user has to invoke MHD_start_daemon() directly.

Fixes digitalocean#72.
@hiaochuan
Copy link

nice, it really helps!

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.

Failing to compile client

2 participants